Module: Voom::Presenters::DSL::Components::Mixins::Icons

Included in:
Card, Content, Grid::Column, Common, PageTitle, Table::Row::Column, UserInterface
Defined in:
lib/voom/presenters/dsl/components/mixins/icons.rb

Instance Method Summary collapse

Instance Method Details

#icon(icon = nil, **attribs, &block) ⇒ Object



7
8
9
10
# File 'lib/voom/presenters/dsl/components/mixins/icons.rb', line 7

def icon(icon=nil, **attribs, &block)
  self << Components::Icon.new(parent: self, icon: icon,
                               **attribs, &block)
end