Sha256: 4390f77dafe289daa7ea40fce2e6899bebce8dcc0876dc1fac97634652b259d1

Contents?: true

Size: 1.14 KB

Versions: 23

Compression:

Stored size: 1.14 KB

Contents

<%= content_tag(:div,
    aria: object.aria,
    class: object.classname + object.error_class,
    data: object.data,
    id: object.id) do %>
      <div class="input_wrapper">
        <%= pb_rails("text_input", props: {
          aria: object.input_aria,
          autocomplete: false,
          dark: object.dark,
          data: object.input_data,
          disabled: object.disable_input,
          error: object.error,
          id: object.picker_id,
          label: object.hide_label ? nil : object.label,
          name: object.name,
          placeholder: object.placeholder,
          required: object.required
        }) %>
        <% if !object.hide_icon %>
          <div
              class="<%= object.icon_wrapper_class %>"
              id="cal-icon-<%= object.picker_id %>"
          >
            <%= pb_rails("icon", props: { 
              classname: "cal_icon",
              icon: "calendar-alt"
            }) %>
          </div>
        <% end %>
      </div>

      <%= javascript_tag do %>
      window.addEventListener("DOMContentLoaded", () => {
          datePickerHelper(<%= object.date_picker_config %>)
      })
      <% end %>
<% end %>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
playbook_ui-7.4.0.pre.alpha6 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.4.0.pre.alpha4 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.4.0.pre.alpha2 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.4.0.pre.alpha1 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.3.0.pre.alpha12 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.3.0.pre.alpha11 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.3.0.pre.alpha10 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.3.0.pre.alpha9 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.3.0.pre.alpha8 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.3.0.pre.alpha7 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.3.0.pre.alpha3 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.3.0.pre.alpha1 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.2.0 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.1.2 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.1.0.pre.alpha2 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.1.1.pre.alpha1 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.1.1 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.1.0.pre.alpha1 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.1.0 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.0.1.pre.alpha15 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb