Sha256: c7fed1e22a9657d1697a49bb014d2f4c09c0c0760f1f976b7704ef75e221e6eb

Contents?: true

Size: 345 Bytes

Versions: 4

Compression:

Stored size: 345 Bytes

Contents

module Trestle
  class Form
    module Fields
      class RangeField < Field
        def field
          builder.raw_range_field(name, options)
        end

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

Trestle::Form::Builder.register(:range_field, Trestle::Form::Fields::RangeField)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trestle-0.10.1 lib/trestle/form/fields/range_field.rb
trestle-0.10.0 lib/trestle/form/fields/range_field.rb
trestle-0.10.0.pre2 lib/trestle/form/fields/range_field.rb
trestle-0.10.0.pre lib/trestle/form/fields/range_field.rb