Class: VCFB::Component::Base
- Inherits:
-
Object
- Object
- VCFB::Component::Base
- Extended by:
- ActiveModel::Callbacks
- Defined in:
- lib/vcfb/component/base.rb
Direct Known Subclasses
BaseCollection, Button, CheckBox, CollectionSelect, ColorField, DateField, DateSelect, DatetimeField, DatetimeSelect, EmailField, FileField, Form, GroupedCollectionSelect, Label, MonthField, NumberField, PasswordField, RadioButton, RangeField, RichTextArea, SearchField, Select, Submit, TelephoneField, TextArea, TextField, TimeField, TimeSelect, TimeZoneSelect, UrlField, WeekField, WeekdaySelect
Instance Method Summary collapse
-
#collection_check_boxes(object, method, collection, value_method, text_method, options = {}, html_options = {}, &block) ⇒ Object
Override the built-in methods to allow us to render custom collection tag builders that render using labels, check boxes, and radio buttons via components.
- #collection_radio_buttons(object, method, collection, value_method, text_method, options = {}, html_options = {}, &block) ⇒ Object
Instance Method Details
#collection_check_boxes(object, method, collection, value_method, text_method, options = {}, html_options = {}, &block) ⇒ Object
Override the built-in methods to allow us to render custom collection tag builders that render using labels, check boxes, and radio buttons via components.
18 19 20 |
# File 'lib/vcfb/component/base.rb', line 18 def collection_check_boxes(object, method, collection, value_method, text_method, = {}, = {}, &block) VCFB::Tags::CollectionCheckBoxes.new(object, method, self, collection, value_method, text_method, , ).render(&block) end |
#collection_radio_buttons(object, method, collection, value_method, text_method, options = {}, html_options = {}, &block) ⇒ Object
22 23 24 |
# File 'lib/vcfb/component/base.rb', line 22 def (object, method, collection, value_method, text_method, = {}, = {}, &block) VCFB::Tags::CollectionRadioButtons.new(object, method, self, collection, value_method, text_method, , ).render(&block) end |