API
Component

Dialog ($UI/system/components/bootstrap/dialog/dialog)

使用范围:UI2

Contents

component Dialog ($UI/system/components/bootstrap/dialog/dialog) extends ViewComponent

<b>使用场景</b>:需要有交互的对话框; <b>使用方法</b>:添加dialog(bootstrap)组件,由父页面操作打开,分为上中下三部分,在dialog下添加需要的内容;

	
	

Constructor Top

  Dialog ()
  Dialog ( options)

Attributes Top

string xid

Methods Top

void close ()
void show ()
void toggle ()

Operations Top

void close ()
void show ()
void toggle ()

Events Top

void onHide (ViewEvent event)
void onShow (ViewEvent event)

Constructor details Top

public Dialog ()

<b>使用场景</b>:需要有交互的对话框; <b>使用方法</b>:添加dialog(bootstrap)组件,由父页面操作打开,分为上中下三部分,在dialog下添加需要的内容;

	
	

public Dialog ( options)

构造函数

Inherited from ViewComponent

	
		参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
	 

Parameters

options

参数选项

Attributes Detail Top

public string xid

Methods Detail Top

public void close ()

隐藏对话框

Return Value

void

public void show ()

显示对话框

Return Value

void

public void toggle ()

切换显示

Return Value

void

Operations Detail Top

public void close ()

关闭对话框

See Close

Return Value

void

public void show ()

显示对话框

See Show

Return Value

void

public void toggle ()

切换对话框显示状态

See Toggle

Return Value

void

Events Detail Top

public void onHide (ViewEvent event)

[回调型事件]当隐藏的时候

Parameters

ViewEvent event


结构如下:

{ "source" : 组件的js对象 "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 }

Return Value

void

public void onShow (ViewEvent event)

[回调型事件]当显示时候

Parameters

ViewEvent event


结构如下:

{ "source" : 组件的js对象 "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 }

Return Value

void