Class: Voom::Presenters::DSL::Components::TextArea
Instance Attribute Summary collapse
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
Attributes inherited from TextField
#full_width, #password, #required
Attributes inherited from Input
Attributes inherited from EventBase
Attributes included from Mixins::Event
Attributes inherited from Base
#attributes, #context, #id, #type
Instance Method Summary collapse
-
#initialize(**attribs_, &block) ⇒ TextArea
constructor
A new instance of TextArea.
Methods inherited from TextField
#error, #hint, #icon, #label, #pattern, #readonly, #value
Methods included from Mixins::Event
Methods inherited from Base
Methods included from Serializer
Methods included from Lockable
Constructor Details
#initialize(**attribs_, &block) ⇒ TextArea
Returns a new instance of TextArea.
10 11 12 13 14 |
# File 'lib/voom/presenters/dsl/components/text_area.rb', line 10 def initialize(**attribs_, &block) super(type: :text_area, **attribs_, &block) @rows = attribs.delete(:rows) || 3 end |
Instance Attribute Details
#rows ⇒ Object (readonly)
Returns the value of attribute rows.
8 9 10 |
# File 'lib/voom/presenters/dsl/components/text_area.rb', line 8 def rows @rows end |