使用范围:UI2
Contents
component Wing ($UI/system/components/justep/wing/wing) extends ViewComponent
Constructor Top
Wing () | |||
Wing ( options) |
Properties Top
boolean |
animate
是否使用滑动动画 | ||
boolean |
dismissible
点击content区域是否隐藏边栏 | ||
string |
display
边栏展示方式, 默认值"overlay", "push"或"reveal" | ||
Boolean |
leftOpened
左打开 | ||
Boolean |
rightOpened
右打开 |
Attributes Top
boolean |
animate
是否使用滑动动画 | ||
boolean |
dismissible
点击content区域是否隐藏边栏 | ||
string |
display
边栏展示方式, 默认值"overlay", "push"或"reveal" | ||
boolean |
routable
是否启动路由 | ||
string | xid |
Methods Top
get (string name) | ||
integer | getSize (string name) | |
void | hide (string name) | |
void | hideLeft (function fn) | |
void | hideRight (Function fn) | |
void | set (json arg) | |
void | setSize (string name, integer value) | |
void | show (string name) | |
void | showLeft (Function fn) | |
void | showRight (Function fn) | |
void | toggleLeft () | |
void | toggleRight () |
Operations Top
void | toggleLeft () | |
void | toggleRight () |
Constructor details
Top
public
Wing
()
可实现左右滑动打开侧边栏的效果
##
文档链接:#http://docs.newdao.net/app/zuo-you-bian-lan.html#
public
Wing
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
public
Wing
()
public
Wing
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
Properties Detail Top
public
boolean
animate
是否使用滑动动画
public
boolean
dismissible
点击content区域是否隐藏边栏
public
string
display
边栏展示方式, 默认值"overlay", "push"或"reveal"
public
Boolean
leftOpened
左打开
public
Boolean
rightOpened
右打开
Attributes Detail Top
public
boolean
animate
是否使用滑动动画
public
boolean
dismissible
点击content区域是否隐藏边栏
public
string
display
边栏展示方式, 默认值"overlay", "push"或"reveal"
public
boolean
routable
是否启动路由
public
string
xid
Methods Detail Top
public
get
(string name)
获取Wing的属性
public
integer
getSize
(string name)
获取侧边栏的宽度
public
void
hide
(string name)
隐藏区域
public
void
hideLeft
(function fn)
隐藏左边栏区域
public
void
hideRight
(Function fn)
隐藏右边栏区域
public
void
set
(json arg)
设置Wing的属性
public
void
setSize
(string name, integer value)
设置侧边栏的宽度
public
void
show
(string name)
显示区域
public
void
showLeft
(Function fn)
显示左边栏区域
public
void
showRight
(Function fn)
显示右边栏区域
public
void
toggleLeft
()
切换左边区域显示或隐藏
public
void
toggleRight
()
切换右边区域显示或隐藏
Operations Detail Top
public
void
toggleLeft
()
切换左侧区域显示或隐藏
See ToggleLeft
public
void
toggleRight
()
切换右侧区域显示或隐藏
See ToggleRight