Sha256: f398e8c08539b162f8225ab1ed015b44bdddc1e75d474b2702446a59e8b4d771
Contents?: true
Size: 1.18 KB
Versions: 9
Compression:
Stored size: 1.18 KB
Contents
<% class_name = '' unless local_variables.include? :class_name position_classes = comp.position.map {|p| "v-button-position-#{p}"}.join(' ') text_align = comp.position.select {|p| eq(p, :left)}.any? && eq(comp.button_type, :flat)%> <button id="<%= comp.id %>" class="mdc-button v-js-ripple-button <%=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-button-text-align-left" if text_align %> <%= 'mdc-menu-anchor v-menu-click' if comp.menu%>" <%= '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'} %> <%= comp.text %> <%= erb :"components/menu", :locals => {comp: comp.menu, parent_id: comp.id} %> </button> <%= erb :"components/tooltip", :locals => {comp: comp.tooltip, parent_id: comp.id} %>
Version data entries
9 entries across 9 versions & 1 rubygems