Class: Voom::Presenters::DSL::Components::Input

Inherits:
EventBase show all
Includes:
Mixins::Tooltips
Defined in:
lib/voom/presenters/dsl/components/input.rb

Direct Known Subclasses

HiddenField, Select, TextField, ToggleBase

Instance Attribute Summary collapse

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) ⇒ Input

Returns a new instance of Input.



12
13
14
15
# File 'lib/voom/presenters/dsl/components/input.rb', line 12

def initialize(**attribs_, &block)
  super(**attribs_, &block)
  @name = attribs.delete(:name)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/voom/presenters/dsl/components/input.rb', line 10

def name
  @name
end