使用范围:UI2
Contents
component PopOver ($UI/system/components/justep/popOver/popOver) extends ViewComponent
Constructor Top
PopOver () | |||
PopOver ( options) |
Properties Top
string |
anchor
指定相对停靠的组件的xid | ||
string |
direction
停靠的方向, 当设置了anchor属性有效, 值可以是 left-bottom,right-bottom,left-top,right-top | ||
boolean |
dismissible
决定点击空白区域是否隐藏 | ||
string |
opacity
遮罩得透明度 | ||
string |
position
相对屏幕的位置, 值可以是 top,left,center,right,bottom,当设置anchor后此属性无效 |
Attributes Top
string |
anchor
指定相对停靠的组件的xid | ||
string |
direction
停靠的方向, 当设置了anchor属性有效, 值可以是 left-bottom,right-bottom,left-top,right-top | ||
boolean |
dismissible
决定点击空白区域是否隐藏 | ||
string |
opacity
遮罩得透明度 | ||
string |
position
相对屏幕的位置, 值可以是 top,left,center,right,bottom,当设置anchor后此属性无效 | ||
string | xid |
Methods Top
get (string name) | ||
void | hide () | |
void | set (json arg) | |
void | show () |
Operations Top
hide () | ||
show () |
Constructor details
Top
public
PopOver
()
使用场景:设计好弹出层停靠位置、弹出层内容后,可在组件事件(如按钮点击事件)中选择显示弹出层
##
文档链接:#http://docs.newdao.net/appnei-rong-zu-4ef6-lhj/dan-chu-ceng.html#
public
PopOver
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
Properties Detail Top
public
string
anchor
指定相对停靠的组件的xid
public
string
direction
停靠的方向, 当设置了anchor属性有效, 值可以是 left-bottom,right-bottom,left-top,right-top
public
boolean
dismissible
决定点击空白区域是否隐藏
public
string
opacity
遮罩得透明度
public
string
position
相对屏幕的位置, 值可以是 top,left,center,right,bottom,当设置anchor后此属性无效
Attributes Detail Top
public
string
anchor
指定相对停靠的组件的xid
public
string
direction
停靠的方向, 当设置了anchor属性有效, 值可以是 left-bottom,right-bottom,left-top,right-top
public
boolean
dismissible
决定点击空白区域是否隐藏
public
string
opacity
遮罩得透明度
public
string
position
相对屏幕的位置, 值可以是 top,left,center,right,bottom,当设置anchor后此属性无效
public
string
xid
Methods Detail Top
public
get
(string name)
获取popOver的属性
public
void
hide
()
隐藏内容区域
public
void
set
(json arg)
设置popOver的属性
public
void
show
()
显示内容区域
Operations Detail Top
public
hide
()
隐藏内容区域
public
show
()
显示内容区域