isActionVisible(name)

Returns the visibility/accessibility of the specified end-user feature.

Parameters

name

Name of toolbar button (String):
'Add Filter'
'Unselect All'

Example

if (CurrentSelection1.isActionVisible('Unselect All')) {
  Text1.text = 'Press the Clear button to clear all filters';
}

Either syntax below can be used in component script:

isActionVisible                       // unqualified
CurrentSelection1.isActionVisible     // qualified

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