Sha256: b9792b03b88d289c3964ee09d919ed45724e0ea0a7696bd49ba04aa2a47276a0

Contents?: true

Size: 1.28 KB

Versions: 12

Compression:

Stored size: 1.28 KB

Contents

<%
  class_name = '' unless bound_locals_include?(:class_name, binding)
  event_parent_id = nil unless bound_locals_include?(:event_parent_id, binding)
  data_attributes = '' unless bound_locals_include?(:data_attributes, binding)
%>
<% if comp
     class_name = "#{class_name} #{comp.full_width ? 'v-button-full-width' : nil}"
%>
  <% if comp.menu %>
    <div class="mdc-menu-anchor">
  <% end %>
  <% case comp.button_type.to_sym
        when :fab %>
            <%= partial "components/buttons/fab", :locals => {:comp => comp, class_name: class_name, event_parent_id: event_parent_id, data_attributes: data_attributes} if comp %>
     <% when :icon %>
            <%= partial "components/buttons/icon", :locals => {:comp => comp, class_name: class_name, event_parent_id: event_parent_id, data_attributes: data_attributes} if comp %>
    <% when :image %>
            <%= partial "components/buttons/image", :locals => {:comp => comp, class_name: class_name, event_parent_id: event_parent_id, data_attributes: data_attributes} if comp %>
    <% else  %>
            <%= partial "components/buttons/button", :locals => {:comp => comp, class_name: class_name, event_parent_id: event_parent_id, data_attributes: data_attributes} if comp %>
  <% end %>
  <% if comp.menu %>
    </div>
  <% end %>
<% end %>



Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 views/mdc/components/_button.erb
coprl-3.0.0.beta.11 views/mdc/components/_button.erb
coprl-3.0.0.beta.10 views/mdc/components/_button.erb
coprl-3.0.0.beta.9 views/mdc/components/_button.erb
coprl-3.0.0.beta.8 views/mdc/components/_button.erb
coprl-3.0.0.beta.7 views/mdc/components/_button.erb
coprl-3.0.0.beta.6 views/mdc/components/_button.erb
coprl-3.0.0.beta.5 views/mdc/components/_button.erb
coprl-3.0.0.beta.4 views/mdc/components/_button.erb
coprl-3.0.0.beta.3 views/mdc/components/_button.erb
coprl-3.0.0.beta.2 views/mdc/components/_button.erb
coprl-3.0.0.beta.1 views/mdc/components/_button.erb