EasyUI Forum
May 16, 2024, 06:29:07 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: proxy datebox [solved]  (Read 4199 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« 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
« Last Edit: December 09, 2016, 02:40:42 AM by devnull » Logged

-- Licensed User --
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 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.
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #2 on: December 09, 2016, 02:40:30 AM »

Great, that works:

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

})
Logged

-- Licensed User --
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!