Sha256: 5ce0724a78e5eff29030f1cb0598fdf7324aede0e14a455c51e296c99d434a8e

Contents?: true

Size: 1.14 KB

Versions: 141

Compression:

Stored size: 1.14 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 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

141 entries across 141 versions & 1 rubygems

Version Path
playbook_ui-14.9.0.pre.alpha.play17004992 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment4991 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.10.0.pre.rc.15 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY16264952 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4927 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4926 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.9.0.pre.alpha.play1742globalheightfixes4925 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.10.0.pre.rc.14 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.10.0.pre.rc.13 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4903 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4901 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4898 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4891 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4890 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment4889 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.10.0.pre.rc.12 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.10.0.pre.rc.11 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4868 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.9.0.pre.alpha.PLAY1731inputmasking4866 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb
playbook_ui-14.9.0.pre.alpha.PBNTR738collapsiblewithintablekit4855 app/pb_kits/playbook/pb_checkbox/checkbox.html.erb