7 Signature comments interface

1 Get signature commments content

minimum version: KB900190501

getSignRemark:function():

Example

WfForm.getSignRemark():// Get the signature comments

2 Set signature comments text

Minimum version : KB900190501

setSignRemark:function (text, is Clear =true,isAfter=true,callback)

Parameter Description

ParametertypeRequiredRemarks

text

String

Yes

Content to be set

isClear

Boolean

No

Whether to clear the opinion first, the default true, is to cover the content of the opinion, false for additional comments

isAfter

Boolean

No

The additional position, default true, the original opinion content tail append, false the head add

callback

Function

No

Callback function after opinion setting is successful

Example

WfForm.setSignRemark("override the content of the signature setting comment ");
WfForm.setSignRemark("additional request for approval before the original opinion ", false,false);

3 Extended Signature comments bottom buttons

Signature Input Box Bottom Button supports Custom Extended

appendSignEditorBottomBar:function (comps =[]) based on built-in accessories, documents, processes)

Parameter Description

ParametertypeRequiredRemarks

comps

React Comp Array

Yes

Arrays of React components to be expanded

WfForm.appendSignEditorBottomBar ([
 React.createElement("div ",{className :" wf-req-signbtn ", children :" custom button 1"}),
 <div> custom button 2</ div<div>
]);

Last updated