lib/avo/fields/date_field.rb in avo-2.17.1.pre.2.customauthorizationclients vs lib/avo/fields/date_field.rb in avo-2.17.1.pre.3
- old
+ new
@@ -3,17 +3,19 @@
class DateField < TextField
attr_reader :first_day_of_week
attr_reader :picker_format
attr_reader :disable_mobile
attr_reader :format
+ attr_reader :picker_options
def initialize(id, **args, &block)
super(id, **args, &block)
add_string_prop args, :first_day_of_week, 1
add_string_prop args, :picker_format, "Y-m-d"
add_string_prop args, :format, "yyyy-LL-dd"
add_boolean_prop args, :disable_mobile
+ add_object_prop args, :picker_options
end
def formatted_value
return if value.blank?