query

fields to specify the fields to display in the Text element.

Specifies the data block to be used by the Text component. The available data blocks appear at the top of the Toolbox panel in Visual Composer.

dataBlocks 5

Type

String

Example

Text1.query = 'Sales';
Text1.fields = ['Total'];
Text1.formula = StyleConstant.AVERAGE_FORMULA;

Either syntax below can be used in component script:

query            // unqualified
Text1.query      // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.