Class: FormProps::Inputs::ColorField

Inherits:
TextField
  • Object
show all
Defined in:
lib/form_props/inputs/color_field.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #json

Constructor Details

This class inherits a constructor from FormProps::Inputs::Base

Instance Method Details

#renderObject



6
7
8
9
# File 'lib/form_props/inputs/color_field.rb', line 6

def render
  @options["value"] ||= validate_color_string(value)
  super
end