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
Constants inherited from GenericTagBrush
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
#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 ⇒ ImageButtonTag
Returns a new instance of ImageButtonTag.
515 516 517 |
# File 'lib/wee/html_brushes.rb', line 515 def initialize super(HTML_TYPE) end |