API
Component

PopOver ($UI/system/components/justep/popOver/popOver)

使用范围:UI2

Contents

component PopOver ($UI/system/components/justep/popOver/popOver) extends ViewComponent

<b>使用场景</b>:设计好弹出层停靠位置、弹出层内容后,可在组件事件(如按钮点击事件)中选择显示弹出层 ## <b>文档链接</b>:#http://docs.newdao.net/appnei-rong-zu-4ef6-lhj/dan-chu-ceng.html#

	
	

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 ()

<b>使用场景</b>:设计好弹出层停靠位置、弹出层内容后,可在组件事件(如按钮点击事件)中选择显示弹出层 ## <b>文档链接</b>:#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是组件的参数选项
	 

Parameters

options

参数选项

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的属性

Parameters

string name

属性名, 值范围: "anchor", "direction", "opacity", "dismissible", "position"

Return Value

返回属性值

public void hide ()

隐藏内容区域

Return Value

void

public void set (json arg)

设置popOver的属性

Parameters

json arg

属性值对
结构如下:

{ "anchor" : 指定相对停靠的组件的xid "direction" : 停靠的方向, 当设置了anchor属性有效, 值可以是 left-bottom,right-bottom,left-top,right-top "opacity" : 遮罩得透明度 "dismissible": 决定点击空白区域是否隐藏 "position": 相对屏幕的位置, 值可以是 top,left,center,right,bottom }

Return Value

void

public void show ()

显示内容区域

Return Value

void

Operations Detail Top

public hide ()

隐藏内容区域

public show ()

显示内容区域