Module: Voom::Presenters::DSL::Components::Mixins::Common
- Includes:
- Append, Buttons, Content, Dialogs, ExpansionPanels, Grids, Icons, ImageLists, Images, Menus, TabBars, Tables, Toggles, Typography
- Included in:
- Card, Card::Media, Content, Dialog, Drawer, ExpansionPanel, ExpansionPanel::Content, Grid::Column, TabBar::Tab, Table, UserInterface
- Defined in:
- lib/voom/presenters/dsl/components/mixins/common.rb
Instance Method Summary
collapse
-
#avatar(avatar = nil, **attributes, &block) ⇒ Object
-
#badge(badge = nil, **attributes, &block) ⇒ Object
-
#card(**attributes, &block) ⇒ Object
-
#form(id: nil, **attributes, &block) ⇒ Object
-
#list(**attributes, &block) ⇒ Object
-
#table(**attributes, &block) ⇒ Object
-
#unordered_list(**attributes, &block) ⇒ Object
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
#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
|
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
|