Sha256: f31fafe43857cdbe4719efa9fff3c6d014e06e2a44c7320ba1c362e81d93cbd7

Contents?: true

Size: 927 Bytes

Versions: 5

Compression:

Stored size: 927 Bytes

Contents

<% class_name = '' unless local_variables.include? :class_name
   position_classes = comp.position.map {|p| "v-button-icon-position-#{p}"}.join(' ')
%>

<button id="<%= comp.id %>"
        class="mdl-button mdl-js-button mdl-button--icon  <%=class_name%> <%= position_classes %>
         <%= 'mdl-button--colored' if eq(comp.color, :primary) %>
         <%= 'mdl-button--accent' if eq(comp.color, :secondary) %>
         <%= 'v-menu-click' if comp.menu%>"
        style = "<%= color_style(comp) %>"
        <%= 'disabled' if comp.disabled %>
        <%= erb :'components/event', :locals => {events: comp.events, parent_id: comp.event_parent_id} unless comp.disabled %>>
  <%= erb :'components/icon', :locals => {comp: comp.icon} %>
  <%= comp.text %>
</button>
<%= erb :"components/tooltip", :locals => {comp: comp.tooltip, parent_id: comp.id} %>
<%= erb :"components/menu", :locals => {comp: comp.menu, parent_id: comp.id} %>

Version data entries

5 entries across 5 versions & 1 rubygems

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