Class: Wee::Brush::RadioButtonTag
- Inherits:
-
InputTag
- Object
- Wee::Brush
- GenericTagBrush
- GenericSingleTagBrush
- InputTag
- Wee::Brush::RadioButtonTag
- Includes:
- CallbackMixin
- Defined in:
- lib/wee/html_brushes.rb
Constant Summary collapse
- HTML_TYPE =
'radio'.freeze
Constants inherited from InputTag
Instance Attribute Summary
Attributes inherited from Wee::Brush
Instance Method Summary collapse
-
#__callback ⇒ Object
do nothing.
- #group(radio_group) ⇒ Object
-
#initialize ⇒ RadioButtonTag
constructor
A new instance of RadioButtonTag.
- #with ⇒ Object
Methods included from CallbackMixin
#call, #callback, #callback_method
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
Methods inherited from Wee::Brush
Constructor Details
#initialize ⇒ RadioButtonTag
Returns a new instance of RadioButtonTag.
637 638 639 |
# File 'lib/wee/html_brushes.rb', line 637 def initialize super(HTML_TYPE) end |
Instance Method Details
#group(radio_group) ⇒ Object
641 642 643 644 |
# File 'lib/wee/html_brushes.rb', line 641 def group(radio_group) @group = radio_group self end |
#with ⇒ Object
650 651 652 653 654 655 656 657 |
# File 'lib/wee/html_brushes.rb', line 650 def with if @group n, v = @group.add_callback(@callback) name(n) value(v) end super end |