Class: Spark::Button::Group

Inherits:
Component::Base show all
Defined in:
app/components/spark/button/group.rb

Constant Summary collapse

COLORS =
Spark::Button::COLORS
SIZES =
Spark::Button::SIZES
STYLES =
Spark::Button::STYLES

Instance Method Summary collapse

Methods inherited from Component::Base

#selector, #to_s, #unique_id

Constructor Details

#initializeGroup

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