Class: Voom::Presenters::DSL::Components::Switch
- Inherits:
-
ToggleBase
- Object
- Base
- EventBase
- Input
- ToggleBase
- Voom::Presenters::DSL::Components::Switch
- Defined in:
- lib/voom/presenters/dsl/components/switch.rb
Instance Attribute Summary
Attributes inherited from ToggleBase
#checked, #off_value, #text, #text_color, #value
Attributes inherited from Input
Attributes inherited from EventBase
Attributes included from Mixins::Event
Attributes inherited from Base
#attributes, #css_class, #draggable, #drop_zone, #id, #tag, #type
Instance Method Summary collapse
-
#initialize(**attribs_, &block) ⇒ Switch
constructor
A new instance of Switch.
Methods inherited from Input
Methods included from Mixins::Tooltips
Methods included from Mixins::Event
Methods inherited from Base
Methods included from Pluggable
#include_plugins, #plugin, #plugin_module
Methods included from Mixins::YieldTo
Methods included from Serializer
Methods included from Lockable
Constructor Details
#initialize(**attribs_, &block) ⇒ Switch
Returns a new instance of Switch.
6 7 8 9 |
# File 'lib/voom/presenters/dsl/components/switch.rb', line 6 def initialize(**attribs_, &block) super(type: :switch, **attribs_, &block) end |