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

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -