Class: Wee::Brush::InputTag

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

Overview


Form - Input


Constant Summary collapse

HTML_TAG =
'input'.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 GenericSingleTagBrush

nesting?, #with

Methods inherited from GenericTagBrush

#callback_on, #get_oid, html_attr, #javascript_on, #oid, #onclick_callback, #onclick_javascript, #ondblclick_callback, #update_component_on, #update_on, #with

Methods inherited from Wee::Brush

#close, nesting?, #setup, #with

Constructor Details

#initialize(_type) ⇒ InputTag

Returns a new instance of InputTag.



418
419
420
421
# File 'lib/wee/html_brushes.rb', line 418

def initialize(_type)
  super(HTML_TAG)
  type(_type)
end

Instance Method Details

#__callbackObject



425
# File 'lib/wee/html_brushes.rb', line 425

def __callback; name(@canvas.register_callback(:input, @callback)) end