EasyUI Forum
November 04, 2025, 09:03:43 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: two panels side by side without using layout()  (Read 8984 times)
korenanzo
Guest
« on: October 01, 2015, 07:28:39 AM »

Hi all,

I'd like to have two panels placed into another panel; the two inner must have the same  y.

I don't want use layout() , for now.

when I try to do it, I only get one panel above the other.

http://jsfiddle.net/korenanzo/0fw6rk9y/27/

How can I achieve my goal?

thanks,
Ric
Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 on: October 02, 2015, 06:40:19 AM »

Please refer to this example http://jsfiddle.net/0fw6rk9y/31/
Logged
korenanzo
Guest
« Reply #2 on: October 02, 2015, 08:44:09 AM »

Well, it works Smiley

Could be usefull to have  into all the panels as defaults

   params.bodyCls = 'r1';
       params.cls = 'a1';


Thanks,
RIc
Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #3 on: October 03, 2015, 03:49:36 AM »

You can override the 'bodyCls' and 'cls' properties value for all panels.
Code:
$.extend($.fn.panel.defaults, {
  cls: 'a1',
  bodyCls: 'r1'
});
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!