Sha256: 7266774d44b2531e4353161676305a7d888b1d5b04ce962c7b179a1407d46397

Contents?: true

Size: 1.17 KB

Versions: 20

Compression:

Stored size: 1.17 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,
          type: object.type
        }) %>
        <% 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

20 entries across 20 versions & 1 rubygems

Version Path
playbook_ui-7.3.0.pre.alpha2 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.0.1 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-6.8.2.pre.alpha1 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.0.1.pre.alpha14 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.0.0 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.0.0.pre.alpha11 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-6.8.1 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-6.8.0 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-6.7.0.pre.alpha1 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-6.7.0 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-6.6.1 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.0.0.pre.alpha10 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-6.6.0 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-6.5.2 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.0.1.pre.alpha12 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.0.1.pre.alpha11 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.0.1.pre.alpha10 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-7.0.1.pre.alpha9 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-6.5.1 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb
playbook_ui-6.5.0 app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb