API
Component

WindowReceiver ($UI/system/components/justep/windowReceiver/windowReceiver)

使用范围:UI2

Contents

component WindowReceiver ($UI/system/components/justep/windowReceiver/windowReceiver) extends BindComponent

WindowReceiver

Constructor Top

  WindowReceiver ()
  WindowReceiver ( options)

Attributes Top

string xid

组件标示

Methods Top

object getReceiveData ()
void sendData (object data)
void windowCancel ()
void windowEnsure (object data)

Operations Top

void sendData (object data)
void windowCancel ()
void windowEnsure (object data)

Events Top

void onReceive (ReceiveEvent event)

Constructor details Top

public WindowReceiver ()

WindowReceiver

public WindowReceiver ( options)

构造函数

Inherited from ViewComponent

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

Parameters

options

参数选项

Attributes Detail Top

public string xid

组件标示

Methods Detail Top

public object getReceiveData ()

获取调用者传入的数据

Return Value

object

调用者传入的数据

public void sendData (object data)

向调用者传送数据

Parameters

object data

传送的数据

Return Value

void

public void windowCancel ()

取消关闭

Return Value

void

public void windowEnsure (object data)

向调用者传送数据并且关闭

Parameters

object data

传送的数据

Return Value

void

Operations Detail Top

public void sendData (object data)

向调用者传送数据

See SendData

Parameters

object data

传送的数据

Return Value

void

public void windowCancel ()

取消关闭

See WindowCancel

Return Value

void

public void windowEnsure (object data)

向调用者传送数据并且关闭

See WindowEnsure

Parameters

object data

传送的数据

Return Value

void

Events Detail Top

public void onReceive (ReceiveEvent event)

[回调型事件]接收数据事件

Parameters

ReceiveEvent event


结构如下:

{ "source" : 组件的js对象, "bindingContext" : 组件绑定的上下文,包含$model、$object等具体请参考bindingContext说明 "data" : 接收到的数据, "sender" : 发送数据的组件js对象,如:WindowDialog }

Return Value

void