Sha256: 65eefdddc1cdf7b233448b1725f25f7dec627c46bb695fe833dbe2d645cae555

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

Stored size: 293 Bytes

Contents

class Trestle::Form::Fields::ColorField < Trestle::Form::Fields::FormControl
  def field
    builder.raw_color_field(name, options)
  end

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

Trestle::Form::Builder.register(:color_field, Trestle::Form::Fields::ColorField)

Version data entries

4 entries across 4 versions & 1 rubygems

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