|
Title: Using easyloader and setting defaults.formatter to datebox Post by: WizPS on February 04, 2020, 06:39:10 PM Hi, I'm using easyloader and wants to extend datebox defaults.formatter with the following code
Code: $.fn.datebox.defaults.formatter = function (date) {How should that look? Please advice. Title: Re: Using easyloader and setting defaults.formatter to datebox Post by: jarry on February 06, 2020, 04:46:17 AM You just need to set your locale language.
Code: <script type="text/javascript"> Title: Re: Using easyloader and setting defaults.formatter to datebox Post by: WizPS on February 06, 2020, 11:41:17 AM The suggested code gives the following date format: ss/mm/yyyy while I am after yyyy-mm-dd. The code I supplied gives the format attached. No language selection gives me this swedish date format, not 'se_SW' either. Pls advice.
Title: Re: Using easyloader and setting defaults.formatter to datebox Post by: jarry on February 06, 2020, 11:51:37 PM Build a simple locale file named 'easyui-lang-se_SW.js' and save it to the 'locale' directory, it looks line this.
Code: if ($.fn.datebox){Register this locale file in the 'easyloader'. Code: <script type="text/javascript"> Title: Re: Using easyloader and setting defaults.formatter to datebox Post by: WizPS on February 07, 2020, 05:00:59 PM Perfect, that works very good thanks.
|