Class: FormProps::Inputs::DatetimeField
Direct Known Subclasses
DateField, DatetimeLocalField, MonthField, TimeField, WeekField
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from FormProps::Inputs::Base
Instance Method Details
#render ⇒ Object
6 7 8 9 10 11 |
# File 'lib/form_props/inputs/datetime_field.rb', line 6 def render @options[:value] ||= format_date(value) @options[:min] = format_date(datetime_value(@options["min"])) @options[:max] = format_date(datetime_value(@options["max"])) super end |