Class: ExtForm::Inputs::DtPicker
- Inherits:
-
SimpleForm::Inputs::StringInput
- Object
- SimpleForm::Inputs::StringInput
- ExtForm::Inputs::DtPicker
- Defined in:
- lib/ext_form/inputs/dt_picker.rb
Instance Attribute Summary collapse
-
#addon_options ⇒ Object
Returns the value of attribute addon_options.
Instance Method Summary collapse
-
#initialize(builder, attribute_name, column, input_type, options = {}) ⇒ DtPicker
constructor
A new instance of DtPicker.
- #input ⇒ Object
Constructor Details
#initialize(builder, attribute_name, column, input_type, options = {}) ⇒ DtPicker
Returns a new instance of DtPicker.
8 9 10 11 12 |
# File 'lib/ext_form/inputs/dt_picker.rb', line 8 def initialize(builder, attribute_name, column, input_type, = {}) self. = .delete(:input_addon) || {} self..merge!({datetimepicker: true}) super end |
Instance Attribute Details
#addon_options ⇒ Object
Returns the value of attribute addon_options.
6 7 8 |
# File 'lib/ext_form/inputs/dt_picker.rb', line 6 def end |
Instance Method Details
#input ⇒ Object
14 15 16 |
# File 'lib/ext_form/inputs/dt_picker.rb', line 14 def input @builder.send(input_type, attribute_name, ) end |