I have bought a paid version of grid, I wanted to know if I could change the text of "Now" to "Start" in one of my date picker and "Stop" in another date picker
You can set datepicker options using "opts" setting:
$col["formatoptions"] = array("srcformat"=>'Y-m-d',"newformat"=>'d.m.Y', "opts" => array("changeYear" => false, "currentText"=> 'Start', "showButtonPanel"=> true ));
For complete list of datepicker options, refer this link: http://api.jqueryui.com/datepicker/
Thanks your early reply. I had one more question, can I make the now button to select the date time and exit the datepicker. Is there a smarty code for that. That would help me a lot and save me a lot of time.
Thanks in advance.
You can search for datepicker documentation and help for such function.
Perhaps, you will need to write handler of onselect and call .hide() function in it.
How useful was this discussion?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!