Class: Wee::Brush::ImageButtonTag

Inherits:
ActionInputTag show all
Defined in:
lib/wee/html_brushes.rb

Overview

NOTE: The form-fields returned by a image-button-tag is browser-specific. Most browsers do not send the “name” key together with the value specified by “value”, only “name.x” and “name.y”. This conforms to the standard. But Firefox also sends “name”=“value”. This is why I raise an exception from the #value method. Note that it’s neccessary to parse the passed form-fields and generate a “name” fields in the request, to make this image-button work.

Constant Summary collapse

HTML_TYPE =
'image'.freeze

Constants inherited from InputTag

Wee::Brush::InputTag::HTML_TAG

Instance Attribute Summary

Attributes inherited from Wee::Brush

#canvas, #document

Instance Method Summary collapse

Methods inherited from ActionInputTag

#__callback

Methods included from CallbackMixin

#call, #callback, #callback_method

Methods inherited from InputTag

#__callback

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

#initializeImageButtonTag

Returns a new instance of ImageButtonTag.



468
469
470
# File 'lib/wee/html_brushes.rb', line 468

def initialize
  super(HTML_TYPE)
end