Class: Archangel::TimePickerInput
- Inherits:
-
SimpleForm::Inputs::Base
- Object
- SimpleForm::Inputs::Base
- Archangel::TimePickerInput
- Defined in:
- app/inputs/archangel/time_picker_input.rb
Overview
Time picker custom input for SimpleForm
Instance Method Summary collapse
-
#input(wrapper_options = nil) ⇒ Object
Build input field.
-
#input_html_classes ⇒ Object
Add `timepicker` as an HTML class.
Instance Method Details
#input(wrapper_options = nil) ⇒ Object
Build input field
13 14 15 16 17 18 |
# File 'app/inputs/archangel/time_picker_input.rb', line 13 def input( = nil) = (, ) @builder.text_field(attribute_name, ) end |
#input_html_classes ⇒ Object
Add `timepicker` as an HTML class
23 24 25 |
# File 'app/inputs/archangel/time_picker_input.rb', line 23 def input_html_classes super.push("timepicker") end |