Class: Trestle::Form::Fields::RangeField
- Inherits:
-
Trestle::Form::Field
- Object
- Trestle::Form::Field
- Trestle::Form::Fields::RangeField
- Defined in:
- lib/trestle/form/fields/range_field.rb
Instance Attribute Summary
Attributes inherited from Trestle::Form::Field
#block, #builder, #name, #options, #template
Instance Method Summary collapse
Methods inherited from Trestle::Form::Field
#disabled?, #errors, #form_group, #initialize, #normalize_options!, #readonly?, #render
Constructor Details
This class inherits a constructor from Trestle::Form::Field
Instance Method Details
#defaults ⇒ Object
9 10 11 |
# File 'lib/trestle/form/fields/range_field.rb', line 9 def defaults super.merge(class: ["form-range"]) end |
#field ⇒ Object
5 6 7 |
# File 'lib/trestle/form/fields/range_field.rb', line 5 def field builder.raw_range_field(name, ) end |