Class: Voom::Presenters::DSL::Components::Checkbox
- Inherits:
-
ToggleBase
- Object
- Base
- EventBase
- Input
- ToggleBase
- Voom::Presenters::DSL::Components::Checkbox
- Defined in:
- lib/voom/presenters/dsl/components/checkbox.rb
Instance Attribute Summary collapse
-
#indeterminate ⇒ Object
Returns the value of attribute indeterminate.
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) ⇒ Checkbox
constructor
A new instance of Checkbox.
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) ⇒ Checkbox
Returns a new instance of Checkbox.
8 9 10 11 12 |
# File 'lib/voom/presenters/dsl/components/checkbox.rb', line 8 def initialize(**attribs_, &block) super(type: :checkbox, **attribs_, &block) @indeterminate = attribs.delete(:indeterminate) { false } end |
Instance Attribute Details
#indeterminate ⇒ Object
Returns the value of attribute indeterminate.
6 7 8 |
# File 'lib/voom/presenters/dsl/components/checkbox.rb', line 6 def indeterminate @indeterminate end |