API
Component

PrintHtml ($UI/system/components/justep/printHtml/printHtml)

使用范围:UI2

Contents

component PrintHtml ($UI/system/components/justep/printHtml/printHtml) extends ViewComponent

printHtml

Constructor Top

  PrintHtml ()
  PrintHtml ( options)

Properties Top

string target

需要打印节点的xid

Attributes Top

string target

需要打印节点的xid

string xid

组件标示

Methods Top

Object get (String name)
void preview (String target, JSON option)
void print (String target, JSON option)
void set (json arg)

Operations Top

preview (String target)
print (String target)

Constructor details Top

public PrintHtml ()

printHtml

public PrintHtml ( options)

构造函数

Inherited from ViewComponent

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

Parameters

options

参数选项

Properties Detail Top

public string target

需要打印节点的xid

Attributes Detail Top

public string target

需要打印节点的xid

public string xid

组件标示

Methods Detail Top

public Object get (String name)

获取属性值

Parameters

String name

属性名称,取值范围:"target"

Return Value

Object

public void preview (String target, JSON option)

预览

Parameters

String target

20 预览节点xid

JSON option

扩展参数
结构如下:

{ "appendHtml" : {String} 增加的html字符串, "closeWin" : {boolean} 操作完成关闭窗口,默认:true "width" : 弹出窗口宽 "height" : 弹出窗口高 "screenX" : 弹出窗口位置X "screenY" : 弹出窗口位置Y }

Return Value

void

public void print (String target, JSON option)

打印

Parameters

String target

20 打印节点xid

JSON option

扩展参数
结构如下:

{ "appendHtml" : {String} 增加的html字符串, "closeWin" : {boolean} 操作完成关闭窗口,默认:true "width" : 弹出窗口宽 "height" : 弹出窗口高 "screenX" : 弹出窗口位置X "screenY" : 弹出窗口位置Y }

Return Value

void

public void set (json arg)

设置属性值

Parameters

json arg

属性值对
结构如下:

{ "target" : {string} 需要打印节点的xid }

Return Value

void

Operations Detail Top

public preview (String target)

预览

See Preview

Parameters

String target

需要预览节点的xid,没有给出时使用属性target指定

public print (String target)

打印

See Print

Parameters

String target

需要打印节点的xid,没有给出时使用属性target指定