Sha256: 6af63cf450dbc8043c5a1f7c6cf7d9150d07266c69a115e6255a752548a2edf5

Contents?: true

Size: 1.14 KB

Versions: 6

Compression:

Stored size: 1.14 KB

Contents

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

<button id="<%= comp.id %>"
        <%= data_attributes %>
        data-disabled-on-post-finished="<%= comp.disabled_on_post_finished %>"
        class="v-button v-button--fab mdc-fab material-icons v-fab--absolute
          <%= 'v-hidden' if comp.hidden %>
          <%= class_name %>
          <%= position_classes %>
          <%= 'mdc-fab--mini' if eq(comp.size, :small) %>"
        aria-label="<%= inflector.humanize(comp.icon.icon) %>"
        <%= 'disabled' if comp.disabled %>
        <%= erb :"components/event", :locals => {comp: comp, events: comp.events, parent_id: event_parent_id || comp.event_parent_id} %>>
  <span class="mdc-fab__icon">
  <%= comp.icon.icon %>
  </span>
</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

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 views/mdc/components/buttons/fab.erb
voom-presenters-2.1.0 views/mdc/components/buttons/fab.erb
voom-presenters-2.0.3 views/mdc/components/buttons/fab.erb
voom-presenters-2.0.2 views/mdc/components/buttons/fab.erb
voom-presenters-2.0.1 views/mdc/components/buttons/fab.erb
voom-presenters-2.0.0 views/mdc/components/buttons/fab.erb