Class: Trestle::Form::Fields::DatetimeField
- Inherits:
-
FormControl
- Object
- Trestle::Form::Field
- FormControl
- Trestle::Form::Fields::DatetimeField
- Includes:
- DatePicker
- Defined in:
- lib/trestle/form/fields/datetime_field.rb
Instance Attribute Summary
Attributes inherited from Trestle::Form::Field
#block, #builder, #name, #options, #template
Instance Method Summary collapse
Methods included from DatePicker
#default_icon, #defaults, #enable_date_picker?, #normalize_options!
Methods inherited from FormControl
#defaults, #input_group, #input_group_addon, #normalize_options!, #render
Methods inherited from Trestle::Form::Field
#defaults, #disabled?, #errors, #form_group, #initialize, #normalize_options!, #readonly?, #render
Constructor Details
This class inherits a constructor from Trestle::Form::Field
Instance Method Details
#controller ⇒ Object
8 9 10 |
# File 'lib/trestle/form/fields/datetime_field.rb', line 8 def controller "datetimepicker" end |
#field ⇒ Object
4 5 6 |
# File 'lib/trestle/form/fields/datetime_field.rb', line 4 def field builder.raw_datetime_field(name, ) end |