You have to override a helper or set them by JS.
For example, with JS you can set as default:
$.datepicker.setDefaults({yearRange: '1980:2000'});
Also, you could override a helper to set only on one column:
def datepicker_format_options(column, format, options)
super
if column == :ADM_NaissanceDate
options['date-yearRange'] = '1980:2000'
end
end
El Martes, 2 de junio de 2015 04:38:02 Gloufy escribió:
> Hi,
>
> I would like add options for date_picker, like yearrange:'1980:2000'
> Where i put it ? in my locale.yml (like fr.yml) in my controller ?
>
> I try a lot of things but it's doesn't work :
>
> config.columns[:ADM_NaissanceDate].form_ui = :date_picker
>
> config.columns[:ADM_NaissanceDate].options={"date:yearranger"=>'1980:2000'}
> ?
>
> config.columns[:ADM_NaissanceDate].options={"yearranger"=>'1980:2000'} ?
>
> Thanks you for your help
> Gloufy
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.