setActionVisible(name,Boolean)

Sets the visibility/accessibility of end-user features. To disable a feature, set the value to false.

Parameters

name

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

Boolean

false: hide the specified function
true: show the specified function

Example

CurrentSelection1.setActionVisible("Add Filter", false);

Either syntax below can be used in component script:

setActionVisible                       // unqualified
CurrentSelection1.setActionVisible     // qualified

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