Class: Coco::App::Elements::Button
- Defined in:
- app/components/coco/app/elements/button/button.rb
Constant Summary collapse
- SIZES =
[:sm, :md, :lg, nil]
- SIZE_ALIASES =
{ default: [:sm, {xl: :md}] }
- THEMES =
[ "primary", "text-primary", "secondary", "text-secondary", "positive", "text-positive", "negative", "text-negative", "warning", "text-warning", "info", "text-info", "toolbar", "toolbar-floating", "text-toolbar", "neutral-dark", "neutral-light", "blank", nil ]
- DEFAULT_THEME =
"primary"
Constants inherited from Button
Instance Attribute Summary
Attributes inherited from Button
#button_attrs, #on_click, #props, #resize
Instance Method Summary collapse
Methods inherited from Button
#active?, #alpine_data, #button?, #button_tag_name, #button_text, #component_classes, #confirm?, #disabled?, #dropdown?, #dropdown_opts, #icon_only?, #initialize, #link?, #loading?, #state_tooltips, #states, #toggle?, #toggle_direction
Methods included from Concerns::AcceptsOptions
#accepted_options, #get_option_group
Constructor Details
This class inherits a constructor from Coco::Button
Instance Method Details
#with_confirmation ⇒ Object
60 61 62 |
# File 'app/components/coco/app/elements/button/button.rb', line 60 def with_confirmation(...) with_dropdown_confirmation(...) end |
#with_dropdown ⇒ Object
56 57 58 |
# File 'app/components/coco/app/elements/button/button.rb', line 56 def with_dropdown(...) with_dropdown_content(...) end |