Class: Voom::Presenters::DSL::Components::Checkbox

Inherits:
ToggleBase show all
Defined in:
lib/voom/presenters/dsl/components/checkbox.rb

Instance Attribute Summary

Attributes inherited from ToggleBase

#checked, #disabled, #text, #value

Attributes inherited from Input

#name

Attributes inherited from EventBase

#event_parent_id

Attributes included from Mixins::Event

#events

Attributes inherited from Base

#attributes, #context, #id, #type

Instance Method Summary collapse

Methods included from Mixins::Tooltips

#tooltip

Methods included from Mixins::Event

#event

Methods inherited from Base

#expand!

Methods included from Mixins::YieldTo

#yield_to

Methods included from Serializer

#to_hash

Methods included from Lockable

#lock!, #locked?

Constructor Details

#initialize(**attribs_, &block) ⇒ Checkbox

Returns a new instance of Checkbox.



8
9
10
11
# File 'lib/voom/presenters/dsl/components/checkbox.rb', line 8

def initialize(**attribs_, &block)
  super(type: :checkbox, **attribs_, &block)
  expand!
end