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
Constants inherited from GenericTagBrush
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
#callback_on, #get_oid, html_attr, #javascript_on, #oid, #onclick_callback, #onclick_javascript, #ondblclick_callback, #update_component_on, #update_on
Methods inherited from Wee::Brush
Constructor Details
#initialize ⇒ RadioButtonTag
Returns a new instance of RadioButtonTag.
684 685 686 |
# File 'lib/wee/html_brushes.rb', line 684 def initialize super(HTML_TYPE) end |
Instance Method Details
#group(radio_group) ⇒ Object
688 689 690 691 |
# File 'lib/wee/html_brushes.rb', line 688 def group(radio_group) @group = radio_group self end |
#with ⇒ Object
697 698 699 700 701 702 703 704 |
# File 'lib/wee/html_brushes.rb', line 697 def with if @group n, v = @group.add_callback(@callback) name(n) value(v) end super end |