Class: Spark::Button::Group
- Inherits:
-
Component::Base
- Object
- ActionView::Component::Base
- Component::Base
- Spark::Button::Group
- Defined in:
- app/components/spark/button/group.rb
Constant Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Group
constructor
A new instance of Group.
Methods inherited from Component::Base
Constructor Details
#initialize ⇒ Group
Returns a new instance of Group.
22 23 24 25 26 27 28 |
# File 'app/components/spark/button/group.rb', line 22 def initialize(*) super classname.base = "spark-button-group" set_element_attribute_default(:button, color: @color, size: @size, style: @style) set_element_attribute_default(:menu_button, color: @color, size: @size, style: @style) end |