Class: Trestle::Form::Fields::TimeField
- Inherits:
-
FormControl
- Object
- Trestle::Form::Field
- FormControl
- Trestle::Form::Fields::TimeField
- Includes:
- DatePicker
- Defined in:
- lib/trestle/form/fields/time_field.rb
Instance Attribute Summary
Attributes inherited from Trestle::Form::Field
#block, #builder, #name, #options, #template
Instance Method Summary collapse
Methods included from DatePicker
#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
12 13 14 |
# File 'lib/trestle/form/fields/time_field.rb', line 12 def controller "timepicker" end |
#default_icon ⇒ Object
8 9 10 |
# File 'lib/trestle/form/fields/time_field.rb', line 8 def default_icon icon("fa fa-clock-o") end |
#field ⇒ Object
4 5 6 |
# File 'lib/trestle/form/fields/time_field.rb', line 4 def field builder.raw_time_field(name, ) end |