Sha256: 17e1009f0085f4cf7cf2296d318863dd1968f9e6fe90660c06d8bbbbf77f8cd4

Contents?: true

Size: 1.07 KB

Versions: 402

Compression:

Stored size: 1.07 KB

Contents

<%= content_tag(:label, aria: object.aria,
                        id: object.id,
                        data: object.data,
                        class: object.classname,
                        **combined_html_options
                ) do %>
  <%= content.presence || object.input %>
  <% if object.indeterminate %>
    <span class="pb_checkbox_indeterminate">
      <%= pb_rails("icon", props: { icon: "minus", classname: "indeterminate_icon", fixed_width: true}) %>
      <%= pb_rails("icon", props: { icon: "check", classname: "check_icon hidden", fixed_width: true}) %>
    </span>
  <% else %>
    <span class="pb_checkbox_checkmark">
      <%= pb_rails("icon", props: { icon: "check", classname: "check_icon", fixed_width: true}) %>
      <%= pb_rails("icon", props: { icon: "minus", classname: "indeterminate_icon hidden", fixed_width: true}) %>
    </span>
  <% end %>
  <span class="pb_checkbox_label">
    <%= pb_rails("body", props: { status: object.checkbox_label_status, text: object.text, dark: object.dark, margin_right: object.form_spacing ? "xs" : "" }) %>
  </span>
<% end %>

Version data entries

402 entries across 402 versions & 1 rubygems

Version Path
playbook_ui-14.6.0.pre.rc.23 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.6.0.pre.rc.22 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.6.0.pre.rc.21 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.5.0.pre.alpha.PLAY1548intltelinputupdatelatest4175 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.6.0.pre.rc.20 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.5.0.pre.alpha.PLAY1548intltelinputupdatelatest4162 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.5.0.pre.alpha.PBNTR595popoverwidthpropfilterpopoverprop4158 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.5.0.pre.alpha.PBNTR614advancedtablepoc4155 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.6.0.pre.rc.19 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.6.0.pre.rc.18 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.5.0.pre.alpha.play1549upgradereactmodal4130 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.5.0.pre.alpha.PLAY1601updatereactzoompanpinch4128 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.5.0.pre.alpha.PLAY1601updatereactzoompanpinch4123 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.6.0.pre.rc.17 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.5.0.pre.alpha.play1586datearea4115 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.6.0.pre.rc.16 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.5.0.pre.alpha.PLAY1485selectablecardoverflowoutlinebug4098 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.5.0.pre.alpha.PLAY1485selectablecardoverflowoutlinebug4097 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.5.0.pre.alpha.PLAY1485selectablecardoverflowoutlinebug4094 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.6.0.pre.rc.15 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb