Skip to main content
A newer version of this page is available. .
JS

RichEditBuilder.OnCalculateDocumentVariable(String) Method

Fires when a DOCVARIABLE field is updated.

Namespace: DevExpress.AspNetCore.RichEdit

Assembly: DevExpress.AspNetCore.RichEdit.v19.2.dll

Declaration

public RichEditBuilder OnCalculateDocumentVariable(
    string callback
)

Parameters

Name Type Description
callback String

The name of a JavaScript function or the entire JavaScript function code used to handle an event.

Returns

Type Description
RichEditBuilder

An object that can be used to further configure the Rich Text Editor.

Remarks

The CalculateDocumentVariable event is fired when a DOCVARIABLE value is calculated. The event is fired when a field is updated (via UI commands, update or updateAllFields methods), or during the mail merge process. Handle this event to analyze DOCVARIABLE field switches and arguments, and provide custom content to insert into this field.

The DOCVARIABLE field has the following structure: { DOCVARIABLE “variable name” “argument1” “argument 2”… }

See Also