isActionVisible(name)

thisViewsheet.isActionVisible(name) to return Dashboard toolbar button visibility.

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

Parameters

name

name of feature (String):

'Switch To Year View'
'Switch To Month View'
'Switch To Simple View'
'Switch To Date Range Mode'
'Clear Calendar'
'Apply'

Example

if (Calendar1.isActionVisible('Apply')==true) {
  Text1.text = 'Press the Apply button to apply filter';
}

Either syntax below can be used in component script:

isActionVisible              // unqualified
Calendar1.isActionVisible    // qualified

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