OptionalactionOptional action name. This name is used when coordinating header control clicks and App V2 action handlers. If no name is provided, a name will be generated.
A fontawesome icon class, e.g., "fas fa-broom"
The header control text to show.
OptionalonA handler for when this header control is clicked. this is the application instance.
the pointer event that triggered the handler
the header control that was clicked
OptionalownershipA key or value in CONST.DOCUMENT_OWNERSHIP_LEVELS that restricts visibility of this option for the current user.
OptionalpositionDenotes whether to put the control in the header menu ('menu') or directly on the header ('header').
Default: 'menu'.
OptionalvisibleA boolean or function signifying whether the menu option should be shown.
Use the function to conditionally show/hide the menu option on each render.
this is the application v2 instance.
A custom header control to be placed in the controls menu of an Application V2 window.
Example: Making a debug button