Class: Wee::Brush::TextAreaTag
- Inherits:
-
GenericTagBrush
- Object
- Wee::Brush
- GenericTagBrush
- Wee::Brush::TextAreaTag
- Includes:
- CallbackMixin
- Defined in:
- lib/wee/html_brushes.rb
Overview
Form - Textarea
Constant Summary collapse
- HTML_TAG =
'textarea'.freeze
Constants inherited from GenericTagBrush
Instance Attribute Summary
Attributes inherited from Wee::Brush
Instance Method Summary collapse
- #__callback ⇒ Object
-
#initialize ⇒ TextAreaTag
constructor
A new instance of TextAreaTag.
- #value(val) ⇒ Object
- #with(value = nil) ⇒ Object
Methods included from CallbackMixin
#call, #callback, #callback_method
Methods inherited from GenericTagBrush
#callback_on, #get_oid, html_attr, #javascript_on, #oid, #onclick_callback, #onclick_javascript, #ondblclick_callback, #update_component_on, #update_on
Methods inherited from Wee::Brush
Constructor Details
#initialize ⇒ TextAreaTag
Returns a new instance of TextAreaTag.
541 542 543 |
# File 'lib/wee/html_brushes.rb', line 541 def initialize super(HTML_TAG) end |
Instance Method Details
#__callback ⇒ Object
556 |
# File 'lib/wee/html_brushes.rb', line 556 def __callback; name(@canvas.register_callback(:input, @callback)) end |
#value(val) ⇒ Object
545 546 547 548 |
# File 'lib/wee/html_brushes.rb', line 545 def value(val) @value = val self end |
#with(value = nil) ⇒ Object
550 551 552 |
# File 'lib/wee/html_brushes.rb', line 550 def with(value=nil) super(value || @value) end |