class Trestle::Form::Fields::RangeField

Public Instance Methods

custom?() click to toggle source
# File lib/trestle/form/fields/range_field.rb, line 9
def custom?
  options[:custom] != false
end
defaults() click to toggle source
Calls superclass method Trestle::Form::Field#defaults
# File lib/trestle/form/fields/range_field.rb, line 13
def defaults
  custom? ? super.merge(class: ["custom-range"]) : super
end
field() click to toggle source
# File lib/trestle/form/fields/range_field.rb, line 5
def field
  builder.raw_range_field(name, options)
end