Module: Voom::Presenters::DSL::Components::Mixins::Chips

Includes:
Append
Included in:
Grid::Column, Table::Row::Column
Defined in:
lib/voom/presenters/dsl/components/mixins/chips.rb

Instance Method Summary collapse

Methods included from Append

#<<, #yield_to

Instance Method Details

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



11
12
13
14
15
# File 'lib/voom/presenters/dsl/components/mixins/chips.rb', line 11

def chip(text= nil, **attribs, &block)
  self << Components::Chip.new(parent: self, text: text,
                                     context: context,
                                     **attribs, &block)
end