Sha256: d1e884b06ed5c292e6630448d094c852f8568f7178a9c4cb9306651eb4cab469

Contents?: true

Size: 953 Bytes

Versions: 4

Compression:

Stored size: 953 Bytes

Contents

<%= pb_content_tag(:label) do %>
  <%= content.presence || object.input %>
  <% if object.indeterminate %>
    <span data-pb-checkbox-icon-span="true" 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 data-pb-checkbox-icon-span="true" 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

4 entries across 4 versions & 1 rubygems

Version Path
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5341 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5340 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5339 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.10.0.pre.alpha.PLAY1750pbcontenttagkitbutton5308 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb