Sha256: 60b0334d61a5415d12b22b817ace59da8007fc9ffd4da14270345b02ec4e69ce

Contents?: true

Size: 540 Bytes

Versions: 4

Compression:

Stored size: 540 Bytes

Contents

<div class="segmented-control">
  <% options.each do |option| %>
    <%= form.radio_button field_name, option[:value], checked: option[:checked], id: "#{field_name}_#{option[:value]}" %>
    <%= form.label "#{field_name}_#{option[:value]}", class: "segmented-btn grey-hover #{option[:class]}" do %>
      <% if option[:checked] %>
        <div class="mr-2">
          <%= render "material_design/icons/icon", locals: { size: 18, icon: "check" } %>
        </div>
      <% end %>
      <%= option[:label] %>
    <% end %>
  <% end %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
material_design-0.10.0 app/views/material_design/buttons/_segmented_button.html.erb
material_design-0.9.1 app/views/material_design/buttons/_segmented_button.html.erb
material_design-0.9.0 app/views/material_design/buttons/_segmented_button.html.erb
material_design-0.8.0 app/views/material_design/buttons/_segmented_button.html.erb