Class: VCFB::Tags::CollectionRadioButtons::RadioButtonBuilder
- Inherits:
-
ActionView::Helpers::Tags::CollectionRadioButtons::Builder
- Object
- ActionView::Helpers::Tags::CollectionRadioButtons::Builder
- VCFB::Tags::CollectionRadioButtons::RadioButtonBuilder
- Includes:
- VCFB::Tags::CollectionHelpers
- Defined in:
- lib/vcfb/tags/collection_radio_buttons.rb
Overview
Override the #label and #radio_button methods to render via component
Instance Method Summary collapse
Instance Method Details
#label(extra_html_options = {}, &block) ⇒ Object
8 9 10 |
# File 'lib/vcfb/tags/collection_radio_buttons.rb', line 8 def label( = {}, &block) form.(@sanitized_attribute_name, @text, (), &block) end |
#radio_button(extra_html_options = {}) ⇒ Object
12 13 14 15 16 |
# File 'lib/vcfb/tags/collection_radio_buttons.rb', line 12 def ( = {}) = .merge(@input_html_options) [:skip_default_ids] = false form.(@method_name, @value, ) end |