Sha256: 32e35a0a5f85c3c8191c9ad6c7099e09d47c029a592e014f26ead147f6d45850

Contents?: true

Size: 1.07 KB

Versions: 323

Compression:

Stored size: 1.07 KB

Contents

<%= content_tag(:div,
  aria: object.aria,
  data: object.data,
  class: object.classnames,
  **combined_html_options) do %>
  <% if object.label %>
    <label class="pb_select_kit_label" for="<%= object.name %>">
      <%= pb_rails("caption", props: { text: object.label }) %>
    </label>
  <% end %>
  <label class="<%= object.select_wrapper_class %>" for="<%= object.name %>">
    <% if content.present? %>
      <%= content %>
      <%= pb_rails("body", props: { status: "negative", text: object.error }) %>
    <% else %>
      <%= select_tag(
        object.name,
        options_for_select(
          object.options_to_array,
          selected: object.selected,
          disabled: object.disabled_options,
        ),
        object.all_attributes
      )
      %>
      <%= pb_rails("body", props: { status: "negative", text: object.error }) %>
    <% end %>
    <% if object.multiple != true %>
      <%= pb_rails("icon", props: { custom_icon: Playbook::Engine::root.join(angle_down_path), fixed_width: true, classname: "pb_select_kit_caret"}) %>
    <% end %>
  </label>
<% end %>

Version data entries

323 entries across 323 versions & 1 rubygems

Version Path
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4901 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4898 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4891 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4890 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment4889 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.10.0.pre.rc.12 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.10.0.pre.rc.11 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4868 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4866 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR738collapsiblewithintablekit4855 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.10.0.pre.rc.10 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.10.0.pre.rc.9 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.10.0.pre.rc.8 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.10.0.pre.rc.7 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.10.0.pre.rc.6 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.10.0.pre.rc.5 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.10.0.pre.rc.4 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY16264818 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR702stickyleftcolrails4806 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.10.0.pre.rc.3 app/pb_kits/playbook/pb_select/select.html.erb