Sha256: f6799281a8326037cb0ac595c64bd4dde71e0892d811bf5d34c3985b1576a85a

Contents?: true

Size: 1.24 KB

Versions: 71

Compression:

Stored size: 1.24 KB

Contents

<%= content_tag(:div,
  data: object.data,
  aria: object.aria,
  class: object.classname) do %>
  <% if object.label %>
    <label class="pb_select_kit_label" for="<%= object.name %>">
      <%= pb_rails("caption", props: { text: object.label, dark: object.dark, }) %>
    </label>
  <% end %>
  <label class="<%= object.select_wrapper_class %>" for="<%= object.name %>">
    <% if object.children %>
      <%= capture(&object.children) %>
      <%= pb_rails("body", props: { dark: object.dark, status: "negative", text: object.error }) %>
    <% else %>
      <%= select_tag(
        object.name,
        options_for_select(
          object.options_to_array,
          selected: object.selected,
          disabled: object.disabled_options,
        ),
        id: object.id,
        prompt: object.blank_selection,
        disabled: object.disabled,
        required: object.required,
        multiple: object.multiple,
        onchange: object.onchange,
        include_blank: object.include_blank,
      )
      %>
      <%= pb_rails("body", props: { dark: object.dark, status: "negative", text: object.error }) %>
    <% end %>
    <%= pb_rails("icon", props: { icon: "angle-down", fixed_width: true, classname: "pb_select_kit_caret"}) %>
  </label>
<% end %>

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
playbook_ui-4.13.0 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-4.12.0 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-4.11.0 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-4.11.0.pre.alpha3 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-4.11.0.pre.alpha.pre.2 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-4.10.0 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-4.10.0.pre.alpha1 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-4.9.0.pre.alpha1 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-4.9.0 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-4.8.2 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-4.8.1 app/pb_kits/playbook/pb_select/_select.html.erb