API
Component

Fileeditor ($UI/system/components/justep/fileeditor/fileeditor)

使用范围:UI2

Contents

component Fileeditor ($UI/system/components/justep/fileeditor/fileeditor) extends BindComponent

附件组件

Constructor Top

  Fileeditor ()
  Fileeditor ( options)

Attributes Top

string bind-ref

数据引用

string xid

组件标示

Events Top

void onAfterEdit (ViewEvent event)
void onAfterFileOpen (ViewEvent event)
void onBeforeFileOpen (ViewEvent event)
void onEdit ()
void onEditError (ViewEvent event)

Constructor details Top

public Fileeditor ()

附件组件

public Fileeditor ( options)

构造函数

Inherited from ViewComponent

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

Parameters

options

参数选项

Attributes Detail Top

public string bind-ref

数据引用

public string xid

组件标示

Events Detail Top

public void onAfterEdit (ViewEvent event)

[回调型事件]文件打开之前

Parameters

ViewEvent event

它的结构如下:

{"source":组件的js对象,"data" : 文件对应的data, "cancel" : true/false }

Return Value

void

public void onAfterFileOpen (ViewEvent event)

[回调型事件]文件打开之前

Parameters

ViewEvent event

它的结构如下:

{"source":组件的js对象,"data" : 文件对应的data, "cancel" : true/false }

Return Value

void

public void onBeforeFileOpen (ViewEvent event)

[回调型事件]文件打开之前

Parameters

ViewEvent event

它的结构如下:

{"source":组件的js对象,"data" : 文件对应的data, "cancel" : true/false }

Return Value

void

public void onEdit ()

[回调型事件]组件点击数据记录链接时 var downParam = {url : 下载地址不能为空,headers : 文件头文件可选,cancel : false};

{"source":组件的js对象,"data" : 文件对应的 downParam }

Return Value

void

public void onEditError (ViewEvent event)

[回调型事件]文件打开之前

Parameters

ViewEvent event

它的结构如下:

{"source":组件的js对象,"data" : 文件对应的data, "cancel" : true/false }

Return Value

void