Sha256: e0b61edbc41f30559d00906349ad9d1940a5d3c6518282c04816f5e0495a5cd3
Contents?: true
Size: 1.22 KB
Versions: 5
Compression:
Stored size: 1.22 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 %> <%= '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'} %> <%= erb :"components/image", :locals => {comp: comp.image} %> <%= 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