使用范围:UI2
Contents
component Print ($UI/system/components/justep/print/print) extends BindComponent
打印组件
Constructor Top
Print () | |||
Print ( options) |
Properties Top
data
打印的Data xid | |||
downloadFilename
= download.xls
导出的文件名 | |||
template
模板 | |||
type
导出类型,取值范围:"pdf",默认"pdf" |
Attributes Top
data
打印的Data xid | |||
downloadFilename
= download.xls
导出的文件名 | |||
template
模板 | |||
type
导出类型,取值范围:"pdf",默认"pdf" | |||
xid
xid标识 |
Methods Top
Object | get (String name) | |
void | print () | |
void | set (json arg) |
Operations Top
print () |
Events Top
boolean | onBeforePrint (BeforeEvent event) | |
void | onError (ErrorEvent event) | |
void | onSuccess (ViewEvent event) |
Constructor details
Top
public
Print
()
打印组件
public
Print
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
public
Print
()
打印组件
public
Print
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
Properties Detail Top
public
data
打印的Data xid
public
downloadFilename
= download.xls
download.xls
导出的文件名
public
template
模板
public
type
导出类型,取值范围:"pdf",默认"pdf"
Attributes Detail Top
public
data
打印的Data xid
public
downloadFilename
= download.xls
download.xls
导出的文件名
public
template
模板
public
type
导出类型,取值范围:"pdf",默认"pdf"
public
xid
xid标识
Methods Detail Top
public
Object
get
(String name)
获取属性值
public
void
print
()
根据类型打印,type=pdf,为导出pdf文件
this.comp("excelExport1").exportExcel();
public
void
set
(json arg)
设置属性值
Operations Detail Top
public
print
()
打印
Events Detail Top
[回调型事件]打印前
[回调型事件]导出失败
[回调型事件]导出成功