Sha256: dc775f65f09502543ad84e97365d7e805f0d0e83f004719de0fe1e8c4b5ecfa5

Contents?: true

Size: 1.18 KB

Versions: 104

Compression:

Stored size: 1.18 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 }) %>
    </label>
  <% end %>
  <label class="<%= object.select_wrapper_class %>" for="<%= object.name %>">
    <% if object.children %>
      <%= capture(&object.children) %>
      <%= 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,
        ),
        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: { 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

104 entries across 104 versions & 1 rubygems

Version Path
playbook_ui-7.0.1.pre.alpha15 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-6.8.2.pre.alpha1 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-7.0.0.pre.alpha15 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-7.0.1.pre.alpha14 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-7.0.0.pre.alpha14 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-7.0.0.pre.alpha13 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-7.0.0.pre.alpha12 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-7.0.0 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-7.0.0.pre.alpha11 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-6.8.1 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-6.8.0 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-6.7.0.pre.alpha1 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-6.7.0 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-6.6.1 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-7.0.0.pre.alpha10 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-6.6.0 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-6.5.2 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-7.0.1.pre.alpha12 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-7.0.1.pre.alpha11 app/pb_kits/playbook/pb_select/_select.html.erb
playbook_ui-7.0.1.pre.alpha10 app/pb_kits/playbook/pb_select/_select.html.erb