isActionVisible(name)
| thisViewsheet.isActionVisible(name) to return Dashboard toolbar button visibility. |
Returns the visibility/accessibility of the specified end-user Chart feature.
Parameters
- name
-
name of chart function (String):
Dragging'AxisResize' (drag to resize axis) 'LegendResize' (drag to resize legend) 'LegendMove' (drag to move legend)Buttons'Brush' 'Clear Brushing' 'Edit' 'Maximize' 'Show Data' 'Show Details' 'Zoom' 'Exclude Data' 'Clear Zoom' 'Enable Manual Refresh' 'Enable Auto Refresh' 'Refresh' 'Drill Down Filter' 'Hide MiniToolbar' 'Menu Actions' ('More' button) 'Sort Axis' (button next to axis)Right-click menu options'Resize Plot' 'Properties' 'Format' 'Save Image As' 'Annotate Component' 'Annotate Point' 'Axis Properties' 'Hide Axis' 'Title Properties' 'Hide Title' 'Group' 'Filter' 'Ungroup' 'Rename' 'Legend Properties' 'Hide Legend' 'Show All Titles' 'Show All Axes' 'Show Legend'
Example
if (Chart1.isActionVisible('Edit')==true) {
Text1.text = 'Click the Edit button to open Chart Editor';
}
|
Either syntax below can be used in component script:
For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required. |