Sha256: 28ddd7ed431ac850ad6d74494fdad5c54b3b5be9f74380519ed82642c4d9249d

Contents?: true

Size: 1.89 KB

Versions: 8

Compression:

Stored size: 1.89 KB

Contents

<% if comp
     float_label = comp.options.select{|o| o.selected }.any?
%>
  <div class="v-multi-select-container"
       <% if comp.input_tag %>data-input-tag="<%= comp.input_tag %>"<% end %>
       <% if comp.dirtyable %>data-dirtyable<% end %>>
    <div class="v-multi-select--options-list v-hidden">
      <% comp.options.each do |option| %>
        <%= partial "components/checkbox", :locals => {comp: option.checkbox, class_name: 'v-multi-select--option'} if option.checkbox %>
      <% end %>
    </div>
    <div class="mdc-select v-multi-select v-input
                <%= 'mdc-select--outlined' if comp.outlined %>
                <% if comp.disabled %>mdc-select--disabled<% end %>"
         <%= 'style="width: 100%;"' if comp.full_width %>
         <%= partial("components/event", locals: {comp: comp,
                                               events: comp.events,
                                               parent_id: "#{comp.id}-input"}) if comp.events&.any? %>>
      <%= partial "components/icon", :locals => {comp: comp.icon, class_name: 'mdc-select__icon', parent_id: "#{comp.id}-input", size_class: '', position: []} if comp.icon %>
      <div class="v-multi-select--current-values"></div>
      <i class="mdc-select__dropdown-icon v-multi-select--options-toggle"></i>
      <div class="mdc-notched-outline mdc-notched-outline--upgraded mdc-notched-outline--notched">
        <div class="mdc-notched-outline__leading"></div>
        <div class="mdc-notched-outline__notch">
          <label class="mdc-floating-label <%= 'mdc-floating-label--float-above' if float_label %>"><%= comp.label %></label>
        </div>
        <div class="mdc-notched-outline__trailing"></div>
      </div>
    </div>
    <%= partial "components/shared/hint_error_display", :locals => {comp: comp} %>
    <%= partial "components/tooltip", :locals => {comp: comp.tooltip, parent_id: comp.id} if comp.tooltip %>
  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

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