Sha256: a5a6b70350205a127ad15911ab1b31a74fedecfef0d33550da65614743cd3c38

Contents?: true

Size: 1.78 KB

Versions: 5

Compression:

Stored size: 1.78 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 %>

    <!-- Inline -->
    <% if object.hide_icon && object.inline %>
      <!-- Plus Icon -->
      <div
          class="<%= object.icon_wrapper_class %>"
          id="<%= object.picker_id %>-icon-plus"
      >
        <%= pb_rails("icon", props: {
          classname: "plus-icon",
          icon: "plus"
        }) %>
      </div>

      <!-- Angle Down Icon -->
      <div
          class="<%= object.icon_wrapper_class %>"
          id="<%= object.picker_id %>-angle-down"
      >
        <%= pb_rails("icon", props: {
          classname: "angle_down_icon",
          icon: "angle-down"
        }) %>
      </div>
    <% end %>
  </div>

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

  <% end %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playbook_ui-12.24.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown756 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-12.24.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown752 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-12.22.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown696 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-12.19.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown638 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb
playbook_ui-12.18.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown629 app/pb_kits/playbook/pb_date_picker/date_picker.html.erb