Class: GOVUKDesignSystemFormBuilder::Containers::ButtonGroup
- Defined in:
- lib/govuk_design_system_formbuilder/containers/button_group.rb
Instance Method Summary collapse
- #html ⇒ Object
-
#initialize(builder, buttons) ⇒ ButtonGroup
constructor
A new instance of ButtonGroup.
Methods inherited from Base
Constructor Details
#initialize(builder, buttons) ⇒ ButtonGroup
Returns a new instance of ButtonGroup.
4 5 6 7 8 |
# File 'lib/govuk_design_system_formbuilder/containers/button_group.rb', line 4 def initialize(builder, ) super(builder, nil, nil) @buttons = end |
Instance Method Details
#html ⇒ Object
10 11 12 |
# File 'lib/govuk_design_system_formbuilder/containers/button_group.rb', line 10 def html tag.div(@buttons, class: %(#{brand}-button-group)) end |