jQuery+easy+UI+API.docx
- 文档编号:8215462
- 上传时间:2023-01-29
- 格式:DOCX
- 页数:38
- 大小:29.08KB
jQuery+easy+UI+API.docx
《jQuery+easy+UI+API.docx》由会员分享,可在线阅读,更多相关《jQuery+easy+UI+API.docx(38页珍藏版)》请在冰豆网上搜索。
jQuery+easy+UI+API
Tabs
UsageTabs
Markup
500px;height: 250px;"> 20px;display: none;"> tab1
auto;padding: 20px;display: none;"> tab2
20px;display: none;"> tab3
jQuery
Tocreateatabscontainer
$('#tt').tabs(options);
Toaddatabpanel:
$('#tt').tabs('add',{
title:
'NewTab',
content:
'TabBody',
closable:
true
});
Dependencies
none
Options
TabsContainer
Overridedefaultswith$.fn.tabs.defaults.
Properties
Name
Type
Description
Default
width
number
Thewidthoftabscontainer.
auto
height
number
Theheightoftabscontainer.
auto
idSeed
number
Thebaseidseedtogeneratetabpanel'sDOMidattribute.
0
plain
boolean
Truetorenderthetabstripwithoutabackgroundcontainerimage.
false
fit
boolean
Truetosetthesizeoftabscontainertofitit'sparentcontainer.
false
border
boolean
Truetoshowtabscontainerborder.
true
scrollIncrement
number
Thenumberofpixelstoscrolleachtimeatabscrollbuttonispressed.
100
scrollDuration
number
Thenumberofmillisecondsthateachscrollanimationshouldlast.
400
Events
Name
Parameters
Description
onLoad
arguments
Fireswhenanajaxtabpanelfinishloadingremotedata.argumentsissameasthecallbackfuntionsuccessofjQuery.ajax.
onSelect
title
Fireswhenuserselectatabpanel.
onClose
title
Fireswhenusercloseatabpanel.
Methods
Name
Parameter
Description
resize
none
Resizethetabscontaineranddolayout.
add
options
Addanewtabpanel,theoptionsparameterisaconfigobject,seetabpanelpropertiesformoredetails.
close
title
Closeatabpanel,titleparameterindicatewhichpaneltobeclosed.
select
title
Selectatabpanel.
exists
title
Indicateifthespecialpanelisexists.
TabPanel
Properties
Name
Type
Description
Default
id
string
ThetabpanelDOMidattribute.
null
title
string
Thetabpaneltitletext.
content
string
Thetabpanelcontent.
href
string
AURLtoloadremotecontenttofillthetabpanel.
null
cache
boolean
Truetocachethetabpanel,validwhenhrefpropertyissetted.
true
icon
string
AniconCSSclasstoshowontabpaneltitle.
null
closable
boolean
Whensettotrue,thetabpanelwillshowaclosablebuttonwhichcanclicktoclosethetabpanel.
false
selected
boolean
Whensettotrue,tabtabpanelwillbeselected.
false
width
number
Thewidthoftabpanel.
auto
height
number
Theheightoftabpanel.
auto
UsageDraggable
Markup
100px;height: 100px;border: 1pxsolid#ccc;"> #ccc;">title