Sha256: bcae7660a8152574275ecd445e5b0aa4e0333b21e0d8963d0ba1f4dfd55c9e9a

Contents?: true

Size: 1.28 KB

Versions: 8

Compression:

Stored size: 1.28 KB

Contents

<% class_name = '' unless bound_locals_include?(: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-switch v-input mdc-switch
      <%= 'mdc-switch--disabled' if comp.disabled %>
      <%= class_name %>">
    <div class="mdc-switch__track"></div>
    <div class="mdc-switch__thumb-underlay">
      <div class="mdc-switch__thumb">
        <input id="<%= comp.id %>-input"
               name="<%= comp.name %>"
               type="checkbox"
               class="mdc-switch__native-control"
               role="switch"
               <% if comp.value %>value="<%= comp.value %>"<% end %>
               data-off="<%= comp.off_value %>"
               <%= ' checked ' if comp.checked %>
               <%= ' disabled ' if comp.disabled %>
               <%= partial "components/event", :locals => {comp: comp, events: comp.events, parent_id: comp.event_parent_id} if comp.events&.any? %>/>
      </div>
    </div>
  </div>
  <label class="v-switch__label" for="<%= comp.id %>-input"><%= 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/_switch.erb
coprl-3.0.0.beta.11 views/mdc/components/_switch.erb
coprl-3.0.0.beta.10 views/mdc/components/_switch.erb
coprl-3.0.0.beta.9 views/mdc/components/_switch.erb
coprl-3.0.0.beta.8 views/mdc/components/_switch.erb
coprl-3.0.0.beta.7 views/mdc/components/_switch.erb
coprl-3.0.0.beta.6 views/mdc/components/_switch.erb
coprl-3.0.0.beta.5 views/mdc/components/_switch.erb