EasyUI Forum
May 16, 2024, 03:39:18 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: How to get the west panel width of inner layout  (Read 9130 times)
chiefer
Newbie
*
Posts: 10


View Profile Email
« on: November 10, 2013, 06:30:16 PM »

How to get the west panel width of inner layout when I draged the split bar, or how can I get the drag event of the the split bar?

I used jQuery EasyUI 1.3.2
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 11, 2013, 02:08:11 AM »

Get the specified region panel first and then call 'options' method to get the panel's width.
Code:
var p = $('body').layout('panel','west');  // get the west panel
console.log(p.panel('options').width);  // output the panel's width
console.log(p.width());  // output the panel's inner width
Logged
chiefer
Newbie
*
Posts: 10


View Profile Email
« Reply #2 on: November 11, 2013, 02:23:41 AM »

Thank you for your anwer.
Sorry, I didn't say clearly what I mean. I need to capture the width of the west panel when I drag the split bar every time.So, the key of the question is how to get the drag event of the the split bar.
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!