Module: Voom::Presenters::DSL::Components::Mixins::Common

Instance Method Summary collapse

Methods included from Dialogs

#dialog

Methods included from ImageLists

#image_list

Methods included from Icons

#icon

Methods included from Images

#image

Methods included from TabBars

#tab_bar

Methods included from Menus

#menu

Methods included from Content

#content

Methods included from ExpansionPanels

#expansion_panel

Methods included from Buttons

#button

Methods included from Grids

#grid

Methods included from Typography

#blank, #body, #body2, #caption, #headline, #headline1, #headline2, #headline3, #headline4, #headline5, #headline6, #link, #overline, #page_title, #separator, #subtitle, #subtitle2, #text, #title

Methods included from Append

#<<, #yield_to

Methods included from Toggles

#checkbox, #icon_toggle, #radio_button, #switch

Instance Method Details

#avatar(avatar = nil, **attributes, &block) ⇒ Object



47
48
49
# File 'lib/voom/presenters/dsl/components/mixins/common.rb', line 47

def avatar(avatar = nil, **attributes, &block)
  self << Components::Avatar.new(parent: self, avatar: avatar, **attributes, &block)
end

#badge(badge = nil, **attributes, &block) ⇒ Object



22
23
24
# File 'lib/voom/presenters/dsl/components/mixins/common.rb', line 22

def badge(badge=nil, **attributes, &block)
  self << Components::Badge.new(parent: self, badge: badge, **attributes, &block)
end

#card(**attributes, &block) ⇒ Object



26
27
28
# File 'lib/voom/presenters/dsl/components/mixins/common.rb', line 26

def card(**attributes, &block)
  self << Components::Card.new(parent: self, **attributes, &block)
end

#form(id: nil, **attributes, &block) ⇒ Object



30
31
32
# File 'lib/voom/presenters/dsl/components/mixins/common.rb', line 30

def form(id: nil, **attributes, &block)
  self << Components::Form.new(parent: self, id: id, **attributes, &block)
end

#list(**attributes, &block) ⇒ Object



34
35
36
37
# File 'lib/voom/presenters/dsl/components/mixins/common.rb', line 34

def list(**attributes, &block)
  self << Components::List.new(parent: self,
                               **attributes, &block)
end

#table(**attributes, &block) ⇒ Object



39
40
41
# File 'lib/voom/presenters/dsl/components/mixins/common.rb', line 39

def table(**attributes, &block)
  self << Components::Table.new(parent: self, **attributes, &block)
end

#unordered_list(**attributes, &block) ⇒ Object



43
44
45
# File 'lib/voom/presenters/dsl/components/mixins/common.rb', line 43

def unordered_list(**attributes, &block)
  self << Components::UnorderedList.new(parent: self, **attributes, &block)
end