grails - How to get gsp date picker to display range of years from x year to the current year? -
i'm using gsp tag display month , year in form.
<g:datepicker name="mydate" value="${new date()}" precision="month" years="${1930..2015}"/>
i want 2015 picked dynamically.
if compute year outside, how specify variable in years range?
you can follow link same. here author tried same..
http://www.icodeya.com/2012/04/grails-datepicker-limit-datepickers.html?m=1
and can go through grails documentation https://grails.github.io/grails-doc/3.0.x/ref/tags/datepicker.html of g:datepicker
hope helps. thanks
Comments
Post a Comment