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

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

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

Methods inherited from Wee::Brush

#close, nesting?, #setup, #with

Constructor Details

#initialize(_type) ⇒ InputTag

Returns a new instance of InputTag.



371
372
373
374
# File 'lib/wee/html_brushes.rb', line 371

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

Instance Method Details

#__callbackObject



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

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