Sha256: d98742d4da04544adeaa5be30717200bc937cc9f3bc9497c652ea50dc78a3612

Contents?: true

Size: 1.13 KB

Versions: 104

Compression:

Stored size: 1.13 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">
    <% if content.present? %>
      <%= content %>
    <% else %>
      <%= 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,
      }) %>
    <% end %>
    <% 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

104 entries across 104 versions & 1 rubygems

Version Path
playbook_ui-10.6.2.pre.alpha.dep app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.6.1.pre.alpha1 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.6.0 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.5.0 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.4.0 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.3.0 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.2.1.alpha.sisensefix app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.2.1 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.2.0 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.1.0 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.0.3.pre.alpha.walkthrough2 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.0.3.pre.alpha.walkthrough app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.0.1.alpha.railscusticon app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.0.2.pre.alpha.pre.iconfix app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.0.1.alpha.rtflexfix app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.0.0.pre.alphafonts app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.0.1 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-10.0.0 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-9.19.0.pre.alpha.pre.fonts2 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-9.19.0 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb