showText

Selection List Properties and Selection Tree Properties more information on these components.

Specifies that the aggregated measure should be displayed as text. This is equivalent to selecting ‘Text’ under the Data tab of the component ‘Properties’ dialog box.

selection component Data tab with Text option enabled for measure display

Type

Boolean

true: show text
false: hide text

Example

SelectionList1.query = 'SalesByDate';
SelectionList1.fields = ['State'];
SelectionList1.measure = 'Total';
SelectionList1.formula = StyleConstant.MAX_FORMULA;
SelectionList1.showText = true;

Either syntax below can be used in component script:

showText                   // unqualified
SelectionList1.showText    // qualified

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