EasyUI Forum
May 08, 2024, 02:00:15 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: collapse and expand By Double Click Panel Header  (Read 8344 times)
BinaryCode
Newbie
*
Posts: 38


View Profile
« on: February 23, 2014, 07:12:34 PM »

Hello Eveybody,

I have case with easyui, and i have try to solve my problem, but can't, my question is:

1. How i can change tab title?  (Solved)
2. how collapse and expand by double click/or click header panel?

TIA,

B.C
« Last Edit: February 23, 2014, 08:04:15 PM by BinaryCode » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: February 24, 2014, 05:55:31 PM »

Try this.
Code:
var t = $('#tt');
$.map(t.tabs('tabs'), function(p){
    p.panel('options').tab.bind('dblclick', function(){
        if (p.panel('options').collapsed){
            p.panel('expand');
        } else {
            p.panel('collapse');
        }
    });
});
Logged
BinaryCode
Newbie
*
Posts: 38


View Profile
« Reply #2 on: March 02, 2014, 03:25:23 AM »

hi stworthy,

Thank your for your help, finnally problem solve, just bind selector div id with click/dblclick event

Regards
B.C
« Last Edit: March 02, 2014, 03:14:10 PM by BinaryCode » Logged
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!