Class: Trestle::Form::Fields::RangeField

Inherits:
Trestle::Form::Field show all
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

#defaultsObject



9
10
11
# File 'lib/trestle/form/fields/range_field.rb', line 9

def defaults
  super.merge(class: ["form-range"])
end

#fieldObject



5
6
7
# File 'lib/trestle/form/fields/range_field.rb', line 5

def field
  builder.raw_range_field(name, options)
end