API
Component

AttachmentSimple ($UI/system/components/justep/attachment/attachmentSimple)

使用范围:UI2

Contents

component AttachmentSimple ($UI/system/components/justep/attachment/attachmentSimple) extends BindComponent

<b>使用场景</b>:可实现上传文件和显示已上传文件的功能; <b>使用方法</b>:需要绑定数据列,且数据列类型必须为“文件”; ## <b>文档链接</b>:#http://docs.newdao.net/appgao-ji-zu-jian/fu-jian.html#

Constructor Top

  AttachmentSimple ()
  AttachmentSimple ( options)

Attributes Top

string bind-ref

数据引用

string xid

组件标示

Methods Top

void uploadFile ()

Operations Top

void uploadFile ()

Constructor details Top

public AttachmentSimple ()

<b>使用场景</b>:可实现上传文件和显示已上传文件的功能; <b>使用方法</b>:需要绑定数据列,且数据列类型必须为“文件”; ## <b>文档链接</b>:#http://docs.newdao.net/appgao-ji-zu-jian/fu-jian.html#

public AttachmentSimple ( options)

构造函数

Inherited from ViewComponent

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

Parameters

options

参数选项

Attributes Detail Top

public string bind-ref

数据引用

public string xid

组件标示

Methods Detail Top

public void uploadFile ()

上传(app)

See UploadFile

Return Value

void

Operations Detail Top

public void uploadFile ()

上传(app)

See UploadFile

Return Value

void