使用范围:UI2
Contents
component Panel ($UI/system/components/justep/panel/panel) extends ViewComponent
Constructor Top
Panel () | |||
Panel ( options) |
Attributes Top
string | xid |
Methods Top
get (string name) | ||
integer | getHeight (string name) | |
boolean | getVisible (string name) | |
void | hideBottom () | |
void | hideTop () | |
void | set (string name, value) | |
void | setHeight (string name, integer value) | |
void | setVisible (string name, boolean value) | |
void | showBottom () | |
void | showTop () | |
void | toggleBottom () | |
void | toggleTop () |
Constructor details
Top
public
Panel
()
可实现头部和底部区域固定显示的效果
##
文档链接:#http://docs.newdao.net/app/shang-zhong-xia-bu-ju.html#
public
Panel
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
public
Panel
()
public
Panel
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
Attributes Detail Top
public
string
xid
Methods Detail Top
public
get
(string name)
获取panel的属性
public
integer
getHeight
(string name)
获取上下区域的高度
public
boolean
getVisible
(string name)
获取上下区域的可见性
public
void
hideBottom
()
隐藏下边区域
public
void
hideTop
()
隐藏上边区域
public
void
set
(string name, value)
设置panel的属性
public
void
setHeight
(string name, integer value)
设置上下区域的高度
public
void
setVisible
(string name, boolean value)
设置上下区域的可见性
public
void
showBottom
()
显示下边区域
public
void
showTop
()
显示上边区域
public
void
toggleBottom
()
切换下边区域的显示状态
public
void
toggleTop
()
切换上边区域的显示状态