EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 02, 2024, 03:38:50 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
>
EasyUI for jQuery
>
About attributes of panel
Pages: [
1
]
« previous
next »
Print
Author
Topic: About attributes of panel (Read 12218 times)
nyr_jack
Newbie
Posts: 31
About attributes of panel
«
on:
September 26, 2012, 08:04:47 PM »
<script>
function showPanel(){
//here to write if codes,
//to judge the value of closed, if closed == false then close the panel, else open.
}
</script>
<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit'" onclick="showPanel();">show panel</a>
<div id="p" class="easyui-panel" data-options="border:false,
closed:true
"></div>
So, I want to know how to get boolean value of "closed".
Please help!
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: About attributes of panel
«
Reply #1 on:
September 27, 2012, 12:11:41 AM »
Code:
var p = $('#p');
if (p.panel('options').closed){
p.panel('open');
} else {
p.panel('close');
}
Logged
nyr_jack
Newbie
Posts: 31
Re: About attributes of panel
«
Reply #2 on:
September 27, 2012, 02:29:04 AM »
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...