Class: Wee::Brush::TextAreaTag

Inherits:
GenericTagBrush show all
Includes:
CallbackMixin
Defined in:
lib/wee/html_brushes.rb

Overview


Form - Textarea


Constant Summary collapse

HTML_TAG =
'textarea'.freeze

Constants inherited from GenericTagBrush

GenericTagBrush::EVENTS

Instance Attribute Summary

Attributes inherited from Wee::Brush

#canvas, #document

Instance Method Summary collapse

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

#close, nesting?, #setup

Constructor Details

#initializeTextAreaTag

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

#__callbackObject



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