Annotations can be configured to use the on-click action. This is useful if you want to show or hide components when the annotation marker is clicked.
To configure the on-click action, follow these steps:
1. Open the Annotation Inspector.
Double-click the annotation marker in the Editor. You can also select the annotation in the Sidebar and click the Info button in the toolbar, or use the right-click context menu or keyboard shortcut.
2. Configure the action and visibility settings
The Actions section of the inspector allows you to configure which state values will be set when an annotation marker is clicked, or an annotation is selected in the Sidebar.
In addition, you may specify whether or not you want the marker to always be visible ( box unchecked ), or only visible when the chosen state values are set ( box checked ). This visibility setting is useful when you want an annotation marker to be hidden from view until the UI elements that it refers to are made visible via user interaction ( ex: a dialog box ).
As shown below, you can configure the on-click and visibility settings for an annotation.