Sha256: 616ee59fa403478efbfd7138c730d87bec62ec7c50dc7558d5b7a0dcbdda1ed0

Contents?: true

Size: 1.63 KB

Versions: 8

Compression:

Stored size: 1.63 KB

Contents

<% class_name = '' unless bound_locals_include?(:class_name, binding)
   data_table_class_name = '' unless bound_locals_include?(:data_table_class_name, binding)
%>
<div class="v-form-field mdc-form-field">
  <div id="<%= comp.id %>"
       <% if comp.input_tag %>data-input-tag="<%= comp.input_tag %>"<% end %>
       <% if comp.dirtyable %>data-dirtyable<% end %>
       class="v-checkbox mdc-checkbox v-input
              <%= data_table_class_name %>">
    <input type="checkbox"
           id="<%= comp.id %>-input"
           name="<%= comp.name %>"
           data-indeterminate="<%=comp.indeterminate%>"
           <% if comp.value %>value="<%= comp.value %>"<% end %>
           class="mdc-checkbox__native-control
                 <%= class_name %>"
           <% if comp.checked %>checked<% end %>
           <% if comp.disabled %>disabled<% end %>
           data-off="<%= comp.off_value %>"
           <%= partial "components/event", :locals => {comp: comp, events: comp.events, parent_id: comp.event_parent_id} if comp.events&.any? %>>
    <div class="mdc-checkbox__background">
      <svg class="mdc-checkbox__checkmark"
           viewBox="0 0 24 24">
        <path class="mdc-checkbox__checkmark-path"
              fill="none"
              stroke="white"
              d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
      </svg>
      <div class="mdc-checkbox__mixedmark"></div>
    </div>
  </div>
  <label id="<%= comp.id %>-label" for="<%= comp.id %>-input" style="<%= "color: #{comp.text_color};" if comp.text_color %>"><%= comp.text %></label>
</div>
<%= partial "components/tooltip", :locals => {comp: comp.tooltip, parent_id: comp.id} if comp.tooltip %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 views/mdc/components/_checkbox.erb
coprl-3.0.0.beta.11 views/mdc/components/_checkbox.erb
coprl-3.0.0.beta.10 views/mdc/components/_checkbox.erb
coprl-3.0.0.beta.9 views/mdc/components/_checkbox.erb
coprl-3.0.0.beta.8 views/mdc/components/_checkbox.erb
coprl-3.0.0.beta.7 views/mdc/components/_checkbox.erb
coprl-3.0.0.beta.6 views/mdc/components/_checkbox.erb
coprl-3.0.0.beta.5 views/mdc/components/_checkbox.erb