EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
January 24, 2026, 01:24:12 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
How to judge layout component‘s expand state?
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to judge layout component‘s expand state? (Read 22320 times)
l3917055
Newbie
Posts: 11
How to judge layout component‘s expand state?
«
on:
November 12, 2012, 12:51:04 AM »
when I want to expand a layout panel?
if the panel is expanded ,the panel also do expand.
so I need a API for judge the panel's expand state.
Thank you!
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: How to judge layout component‘s expand state?
«
Reply #1 on:
November 12, 2012, 02:14:44 AM »
Read the 'collapsed' property of region panel and you will known if the panel is collapsed.
Code:
var p = $('body').layout('panel','west'); // get the west panel
var collapsed = p.panel('options').collapsed;
alert(collapsed);
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...