Class: Voom::Presenters::DSL::Components::RichTextArea
Constant Summary
Constants inherited from TextField
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#placeholder ⇒ Object
readonly
Returns the value of attribute placeholder.
-
#resizable ⇒ Object
readonly
Returns the value of attribute resizable.
Attributes inherited from TextField
#auto_complete, #behavior, #case_type, #full_width, #required
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) ⇒ RichTextArea
constructor
A new instance of RichTextArea.
Methods inherited from TextField
#hint, #icon, #label, #pattern, #value
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) ⇒ RichTextArea
Returns a new instance of RichTextArea.
8 9 10 11 12 13 14 15 |
# File 'lib/voom/presenters/dsl/components/rich_text_area.rb', line 8 def initialize(**attribs_, &block) super(type: :rich_text_area, **attribs_, &block) @placeholder = attribs.delete(:placeholder) @rows = attribs.delete(:rows) || default(:rows) @height = "#{@rows * 24}px" @resizable = attribs.delete(:resizable) { false } end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
6 7 8 |
# File 'lib/voom/presenters/dsl/components/rich_text_area.rb', line 6 def height @height end |
#placeholder ⇒ Object (readonly)
Returns the value of attribute placeholder.
6 7 8 |
# File 'lib/voom/presenters/dsl/components/rich_text_area.rb', line 6 def placeholder @placeholder end |
#resizable ⇒ Object (readonly)
Returns the value of attribute resizable.
6 7 8 |
# File 'lib/voom/presenters/dsl/components/rich_text_area.rb', line 6 def resizable @resizable end |