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

Constants inherited from GenericTagBrush

GenericTagBrush::EVENTS

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

#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

#initializeImageButtonTag

Returns a new instance of ImageButtonTag.



515
516
517
# File 'lib/wee/html_brushes.rb', line 515

def initialize
  super(HTML_TYPE)
end