Sha256: 4c0ed729d8c47039ffc337ce635f3fdaa971045a58a2a26f1d4d5a78846cf86a

Contents?: true

Size: 1.1 KB

Versions: 5

Compression:

Stored size: 1.1 KB

Contents

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


<button
  id="<%= comp.id %>"
  class="mdc-button v-js-ripple-button v-button-image <%=class_name%>
          <%= 'mdc-button--raised' if eq(comp.button_type, :raised) %>
          <%= 'v-secondary-filled-button' if eq(comp.button_type, :raised) && eq(comp.color, :secondary) %>
          <%= 'v-secondary-text-button' if eq(comp.button_type, :flat) && eq(comp.color, :secondary) %>
          <%=  position_classes %>
          <%= 'v-menu-click' if comp.menu%>"
  style="background-image: url(<%= comp.image.url %>);"
  <%= '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, class_name: 'mdc-button__icon', position: [:right, :center]} %>
</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/image.erb
voom-presenters-0.1.12 views/mdc/components/buttons/image.erb
voom-presenters-0.1.11 views/mdc/components/buttons/image.erb
voom-presenters-0.1.10 views/mdc/components/buttons/image.erb
voom-presenters-0.1.9 views/mdc/components/buttons/image.erb