Sha256: ca457e49c17668ed26cd08edf98c89630cc60956e89dc0ec1d1d882ffe8bf2ef

Contents?: true

Size: 577 Bytes

Versions: 2

Compression:

Stored size: 577 Bytes

Contents

<%= content_tag(:li,
    aria: object.aria,
    class: object.classname,
    data: object.data,
    id: object.id) do %>
    <% puts object.variant %>
  <% if object.variant == "radio"%>
    <%= pb_rails("radio", props: { text: object.text, checked: object.checked } ) %>
    <% if object.children.present? %>
      <%= capture(&object.children) %>
    <% end %>
  <% else %>
    <%= pb_rails("checkbox", props: { text: object.text, checked: object.checked } ) %>
    <% if object.children.present? %>
      <%= capture(&object.children) %>
    <% end %>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
playbook_ui-7.4.0.pre.alpha1 app/pb_kits/playbook/pb_selectable_list/_selectable_list_item.html.erb
playbook_ui-7.3.0.pre.alpha8 app/pb_kits/playbook/pb_selectable_list/_selectable_list_item.html.erb