Sha256: ec3e8946ec53a8c7c84b44e445b758e0c8aa62cf1f88dd2ad6268c6e08a4d169

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

<%= content_tag(:div,
  id: object.id,
  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="pb_select_kit_wrapper" for="<%= object.name %>">
    <% if object.children %>
      <%= capture(&object.children) %>
    <% else %>
      <%= select_tag(
        object.name,
        options_for_select(
          object.options_to_array,
          selected: object.selected,
          disabled: object.disabled_options,
        ),
        prompt: object.blank_selection,
        disabled: object.disabled,
        required: object.required,
        multiple: object.multiple,
        onchange: object.onchange,
        include_blank: object.include_blank,
      )
      %>
    <% end %>
    <%= pb_rails("icon", props: { icon: "angle-down", fixed_width: true, classname: "pb_select_kit_caret"}) %>
  </label>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
playbook_ui-3.4.0 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-3.3.0 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-3.2.0 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-3.1.0 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-3.0.1 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-3.0.0 app/pb_kits/playbook/pb_select/_select.html.erb