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