EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on December 08, 2016, 06:30:58 AM



Title: proxy datebox [solved]
Post by: devnull on December 08, 2016, 06:30:58 AM
As every datebox is pretty much identical, ist is possible for them to share the same html panel rather than having dozens of date panels that are identical.

I am on a mission to reduce page size and increase performance as some pages now contain as much as 1MB of code & data.

Many Thanks


Title: Re: proxy datebox
Post by: jarry on December 08, 2016, 09:03:43 AM
The datebox components can share the same calendar. Please look at this example http://www.jeasyui.com/demo/main/index.php?plugin=DateBox&theme=default&dir=ltr&pitem=Shared%20Calendar.


Title: Re: proxy datebox
Post by: devnull on December 09, 2016, 02:40:30 AM
Great, that works:

Code:
$.extend($.fn.datebox.defaults,{
  sharedCalendar: '#calendar',
  other defs.....

})