Tagged: backend, custom alb element, datepicker
Hi,
I’m developing a custom ALB element and I need a backend date picker just like the one in countdown element.
I copied the the code in countdown element, and it works fine, but it only allows to pick dates in the future.
Here is the code:
array(
“name” => __(“Date”,’avia_framework’ ),
“desc” => __(“Pick a date in the future.”,’avia_framework’ ),
“id” => “date”,
“type” => “datepicker”,
“container_class” => ‘av_third av_third_first’,
“std” => “”),
Is it possible to configure it to allow past dates as well?
Thank you
Hey aledef,
You will need to modify avia-modal.js found in wp-content > themes > enfold > config-templatebuilder > avia-template-builder > assets > js folder.
You’ll need to remove (or just comment out) the minimum date code found in line 460:
minDate: -0,
Hope this helps.
Best regards,
Nikko
Great
Thankyou Nikko!
Hi aledef,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria