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

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

#get_oid, html_attr, #oid, #onclick_callback, #onclick_javascript, #onclick_update_callback, #onclick_update_self_callback, #ondblclick_callback

Methods inherited from Wee::Brush

#close, nesting?, #setup

Constructor Details

#initializeTextAreaTag

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

#__callbackObject



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