Sha256: a3ff24666ba32279757d7cdf1c163678f886ae4978a0499ec86f7eaba91de174

Contents?: true

Size: 1 KB

Versions: 183

Compression:

Stored size: 1 KB

Contents

<%= content_tag(:div,
  aria: object.aria,
  data: object.data,
  class: object.classnames) 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: { icon: "angle-down", fixed_width: true, classname: "pb_select_kit_caret"}) %>
    <% end %>
  </label>
<% end %>

Version data entries

183 entries across 183 versions & 1 rubygems

Version Path
playbook_ui-13.6.0.pre.alpha.tiptapreacthookformbug1210 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.6.0 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.5.0.pre.alpha.play984collapsiblekithidestooltips1203 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.5.0.pre.alpha.PLAY823globalpropoverflow1191 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.5.0.pre.alpha.PLAY823globalpropoverflow1188 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.5.0 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.4.0.pre.alpha.PLAY973Hash1181 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.4.0.pre.alpha.play961turnoffdeprecationwarnings1171 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.4.0 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.3.0 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.2.0.pre.alpha.PLAY986dateTimeRounding1150 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.2.0 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.1.0 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.0.0.pre.alpha.PLAY966collapsiblenav41129 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.0.0.pre.alpha.PLAY966collapsiblenav41128 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.0.0.pre.alpha.PLAY966collapsiblenav41126 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.0.0.pre.alpha.salesbookmismatchingdate1120 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-12.39.0.pre.alpha.salesbookmismatchingdate1117 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.0.0 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-12.39.0.pre.alpha.PLAY966collapsiblenav41115 app/pb_kits/playbook/pb_select/select.html.erb