Sha256: 17bd84f9f2c8fc721838e40e97ab0adff2a99037bb7c430ee524f95c85375df1

Contents?: true

Size: 879 Bytes

Versions: 5

Compression:

Stored size: 879 Bytes

Contents

<% class_name = '' unless local_variables.include? :class_name
%>
<% if comp
     position_classes = comp.position.map {|p| "v-button-position-#{p}"}.join(' ')
     class_name= "#{class_name} #{position_classes}"
%>
  <% if comp.menu %>
    <div class="mdc-menu-anchor" %>
  <% end %>
  <% case comp.button_type.to_sym
        when :fab %>
            <%= erb :"components/buttons/fab", :locals => {:comp => comp, class_name: class_name} %>
     <% when :icon %>
            <%= erb :"components/buttons/icon", :locals => {:comp => comp, class_name: class_name} %>
    <% when :image %>
            <%= erb :"components/buttons/image", :locals => {:comp => comp, class_name: class_name} %>
    <% else  %>
            <%= erb :"components/buttons/button", :locals => {:comp => comp, class_name: class_name} %>
  <% end %>
  <% if comp.menu %>
    </div>
  <% end %>
<% end %>



Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 views/mdc/components/button.erb
voom-presenters-0.1.12 views/mdc/components/button.erb
voom-presenters-0.1.11 views/mdc/components/button.erb
voom-presenters-0.1.10 views/mdc/components/button.erb
voom-presenters-0.1.9 views/mdc/components/button.erb