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.10.0.pre.alpha.play1054tableheadersortconsolidation1416 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.10.0.pre.alpha.play10561409 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.10.0.pre.alpha.dependabotnpmandyarntiptapextensionlink21121407 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.10.0.pre.alpha.PLAY1046multilevelsingleselectphase21365 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.10.0.pre.alpha.PLAY1046multilevelsingleselectphase21358 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.10.0.pre.alpha.play10481357 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.10.0.pre.alpha.play845addswiftkitspage1332 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.10.0.pre.alpha.PLAY978alphatesthighcharts41330 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.10.0.pre.alpha.PLAY1046multilevelsingleselectphase21328 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.10.0.pre.alpha.PLAY1046multilevelsingleselectphase21323 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.10.0.pre.alpha.play978makehighchartsadevdependencypoc1322 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.10.0 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.9.0.pre.alpha.play978makehighchartsadevdependencypoc1292 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.9.0.pre.alpha.verdaccioregistry1277 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.9.0.pre.alpha.play845addswiftkitspage1273 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.9.0.pre.alpha.play845addswiftkitspage1272 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.9.0.pre.alpha.play845allkitsbytypes1271 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.9.0.pre.alpha.play845allkitsbytypes1270 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.9.0.pre.alpha.play845allkitsbytypes1268 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-13.9.0.pre.alpha.play845allkitsbytypes1266 app/pb_kits/playbook/pb_select/select.html.erb