datepickerOptions future months

QuestionsdatepickerOptions future months
Vygandas Pigaga asked 4 years ago

Can I see months to future ?

3 Answers
Abu Ghufran Staff answered 4 years ago

Hi,

By default datepicker comes with option to select future year/month/date.

 

If you want to limit minDate and maxDate, you can refer code:

https://gridphp.com/demo/demos/integrations/datepicker.phps line 45

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Vygandas answered 4 years ago

I meant datereange picker. Cannot get to future months more than current by default

https://imgur.com/a/ngYFypk

Abu Ghufran Staff answered 4 years ago

You can set maxDate like following. 1y will allow future date of 1 year. For months, you can set 24m or so as well.

$col[“searchoptions”][“opts”][“datepickerOptions”] = array(“maxDate”=>”1y”, “numberOfMonths”=>2);

You can check commented line 53 here: https://gridphp.com/demo/demos/integrations/daterangepicker.phps

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

7 + 18 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?