使用范围:UI2
Contents
component Attachment ($UI/system/components/justep/attachment/attachment) extends BindComponent
Constructor Top
Attachment () | |||
Attachment ( options) |
Properties Top
access
操作权限,7:下载,263:下载 上传,775:下载 上传 修改,1799:下载 上传 修改 删除 | |||
keyID
keyID 详见文档关联相关用法 | |||
limit
限制上传文件的个数 | |||
limitSize | |||
subPath
上传文件到指定的知识中心目录下的动态子目录 |
Attributes Top
access
操作权限,7:下载,263:下载 上传,775:下载 上传 修改,1799:下载 上传 修改 删除 | |||
bind-ref
[required]数据引用 | |||
component
= "$UI/system/components/justep/attachment/attachment"
[required]组件标识 | |||
keyID
keyID 详见文档关联相关用法 | |||
limit
限制上传文件的个数 | |||
subPath
上传文件到指定的知识中心目录下的动态子目录 | |||
xid
[required]xid标识 |
Events Top
void | onBrowse (BrowseEvent event) | |
void | onError (ViewEvent event) | |
void | onFileSelect (FileSelectEvent event) | |
void | onProgress (ProgressEvent event) | |
void | onSuccess (ViewEvent event) |
Constructor details
Top
public
Attachment
()
使用场景:简单的用来在上传下载文件;
使用方法:添加attachment组件,指定要上传或下载文件的路径,可以规定上传、下载、修改、删除等操作;
public
Attachment
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
public
Attachment
()
public
Attachment
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
Properties Detail Top
public
access
操作权限,7:下载,263:下载 上传,775:下载 上传 修改,1799:下载 上传 修改 删除
public
keyID
keyID 详见文档关联相关用法
public
limit
限制上传文件的个数
public
limitSize
public
subPath
上传文件到指定的知识中心目录下的动态子目录
Attributes Detail Top
public
access
操作权限,7:下载,263:下载 上传,775:下载 上传 修改,1799:下载 上传 修改 删除
public
bind-ref
[required]数据引用
public
component
= "$UI/system/components/justep/attachment/attachment"
"$UI/system/components/justep/attachment/attachment"
[required]组件标识
public
keyID
keyID 详见文档关联相关用法
public
limit
限制上传文件的个数
public
subPath
上传文件到指定的知识中心目录下的动态子目录
public
xid
[required]xid标识
Events Detail Top
[回调型事件]组件点击数据记录链接时
[回调型事件]组件上传失败
[回调型事件]准备选择文件前
[回调型事件]文件上传进度
[回调型事件]组件上传完成