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
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
#get_oid, html_attr, #oid, #onclick_callback, #onclick_javascript, #onclick_update_callback, #onclick_update_self_callback, #ondblclick_callback
Methods inherited from Wee::Brush
Constructor Details
#initialize ⇒ TextAreaTag
Returns a new instance of TextAreaTag.
494 495 496 |
# File 'lib/wee/html_brushes.rb', line 494 def initialize super(HTML_TAG) end |
Instance Method Details
#__callback ⇒ Object
509 |
# File 'lib/wee/html_brushes.rb', line 509 def __callback; name(@canvas.register_callback(:input, @callback)) end |
#value(val) ⇒ Object
498 499 500 501 |
# File 'lib/wee/html_brushes.rb', line 498 def value(val) @value = val self end |
#with(value = nil) ⇒ Object
503 504 505 |
# File 'lib/wee/html_brushes.rb', line 503 def with(value=nil) super(value || @value) end |