app/cells/lato_view/input/date/cell.rb in lato_view-1.1.4 vs app/cells/lato_view/input/date/cell.rb in lato_view-1.1.5

- old
+ new

@@ -2,23 +2,25 @@ class Input::Date::Cell < Cell @@widths = VIEW_INPUTWIDTH attr_accessor :name, :placeholder, :value, :label, :width, :required, - :disabled, :custom_class + :disabled, :custom_class, :birthdate def initialize(name: 'input', placeholder: '', value: '', label: '', width: 'large', required: false, disabled: false, - custom_class: '') + custom_class: '', birthdate: false) + # save params @name = name @placeholder = placeholder @value = value @label = label @width = width @required = required @disabled = disabled @custom_class = custom_class + @datepicker_class = birthdate ? 'birthdate-picker' : 'date-picker' # check params check_params end def show