Sha256: 2395e70e8b8783951b6373c16c487610d51f023256833024fc85b6f7f12f6eff
Contents?: true
Size: 489 Bytes
Versions: 1
Compression:
Stored size: 489 Bytes
Contents
module ExtForm module Inputs class DtPicker < SimpleForm::Inputs::StringInput enable :input_addon attr_accessor :addon_options def initialize(builder, attribute_name, column, input_type, options = {}) self.addon_options = options.delete(:input_addon) || {} self.addon_options.merge!({datetimepicker: true}) super end def input @builder.send(input_type, attribute_name, input_html_options) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ext_form-0.1.4 | lib/ext_form/inputs/dt_picker.rb |