Sha256: 1a3274660461851125f3b026c39fae15ac4fbc468054be9de104a058e908b6f2

Contents?: true

Size: 1.03 KB

Versions: 230

Compression:

Stored size: 1.03 KB

Contents

<%= content_tag(:div,
  aria: object.aria,
  data: object.data,
  class: object.classnames,
  **combined_html_options) 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

230 entries across 230 versions & 1 rubygems

Version Path
playbook_ui-14.5.0.pre.rc.2 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.4.0.pre.alpha.PBNTR490multilevelselect3832 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.4.0.pre.alpha.PLAY1546highchartsbump3831 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.4.0.pre.alpha.dependabotnpmandyarntiptapextensionparagraph2723830 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.4.0.pre.alpha.dependabotnpmandyarntiptapextensionlink2723828 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.5.0.pre.rc.1 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.4.0.pre.alpha.pbntr523enablekitsforradiofix3826 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.4.0.pre.alpha.pbntr523enablekitsforradiofix3825 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.4.0.pre.alpha.PLAY1546highchartsbump3822 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.4.0.pre.alpha.PLAY1562highchartsbump3819 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.5.0.pre.rc.0 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.3.2.pre.alpha.pbntr523enablekitsforradiofix3809 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.4.0 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.4.0.pre.rc.16 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.4.0.pre.rc.15 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.4.0.pre.rc.14 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.3.2.pre.alpha.PBNTR417addcolorsupdatedefaultcolor3791 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.4.0.pre.rc.13 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.3.2.pre.alpha.PBNTR515typeaheadmarginbottomredux3785 app/pb_kits/playbook/pb_select/select.html.erb
playbook_ui-14.3.2.pre.alpha.revert3614PBNTR455ganttchartPOC3783 app/pb_kits/playbook/pb_select/select.html.erb