Module: Voom::Presenters::DSL::Components::Mixins::Common
- Includes:
- Append, Buttons, Content, ExpansionPanels, Grids, Menus, Toggles, Typography
- Included in:
- Card, Content, Dialog, Drawer, ExpansionPanel, ExpansionPanel::Content, Grid::Column, UserInterface
- Defined in:
- lib/voom/presenters/dsl/components/mixins/common.rb
Instance Method Summary
collapse
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
#body, #display, #headline, #subheading, #title
Methods included from Append
#<<, #yield_to
Methods included from Toggles
#checkbox, #icon_toggle, #radio_button, #switch
Instance Method Details
#badge(badge = nil, **attributes, &block) ⇒ Object
25
26
27
|
# File 'lib/voom/presenters/dsl/components/mixins/common.rb', line 25
def badge(badge=nil, **attributes, &block)
self << Components::Badge.new(parent: self, badge: badge, context: context, **attributes, &block)
end
|
#card(**attributes, &block) ⇒ Object
29
30
31
|
# File 'lib/voom/presenters/dsl/components/mixins/common.rb', line 29
def card(**attributes, &block)
self << Components::Card.new(parent: self, context: context, **attributes, &block)
end
|
33
34
35
|
# File 'lib/voom/presenters/dsl/components/mixins/common.rb', line 33
def form(id: nil, **attributes, &block)
self << Components::Form.new(parent: self, id: id, context: context, **attributes, &block)
end
|
#list(**attributes, &block) ⇒ Object
37
38
39
40
|
# File 'lib/voom/presenters/dsl/components/mixins/common.rb', line 37
def list(**attributes, &block)
self << Components::List.new(parent: self,
context: context, **attributes, &block)
end
|
#table(**attributes, &block) ⇒ Object
42
43
44
|
# File 'lib/voom/presenters/dsl/components/mixins/common.rb', line 42
def table(**attributes, &block)
self << Components::Table.new(parent: self, context: context, **attributes, &block)
end
|