EasyUI Forum

General Category => General Discussion => Topic started by: l3917055 on November 12, 2012, 12:51:04 AM



Title: How to judge layout component‘s expand state?
Post by: l3917055 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!


Title: Re: How to judge layout component‘s expand state?
Post by: stworthy 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);