Class: Wee::Brush::ImageButtonTag
- Inherits:
-
ActionInputTag
- Object
- Wee::Brush
- GenericTagBrush
- GenericSingleTagBrush
- InputTag
- ActionInputTag
- Wee::Brush::ImageButtonTag
- 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
Instance Method Summary collapse
-
#initialize ⇒ ImageButtonTag
constructor
A new instance of ImageButtonTag.
Methods inherited from ActionInputTag
Methods included from CallbackMixin
#call, #callback, #callback_method
Methods inherited from InputTag
Methods inherited from GenericSingleTagBrush
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 ⇒ ImageButtonTag
Returns a new instance of ImageButtonTag.
468 469 470 |
# File 'lib/wee/html_brushes.rb', line 468 def initialize super(HTML_TYPE) end |