UIActionTriggerCreate
Represents an action trigger. It can be added to the map by using the UiController.createActionTrigger method.
Properties
label
label:
string
The label of the action trigger.
onTrigger()
onTrigger: (
args: {id:string; }) =>void
The function to call when the action trigger is triggered.
Parameters
args
{ id: string; }
The arguments passed to the function.
args.id
string
The id of the action trigger.
Returns
void
id?
optionalid:string
disabled?
optionaldisabled:boolean
Whether the action trigger is disabled or not.
type?
optionaltype:undefined
onCreate()?
optionalonCreate: (args: {id:string; }) =>void
A function to call when the element is created.
Parameters
args
{ id: string; }
The arguments passed to the function.
args.id
string
The id of the element.
Returns
void
onDestroy()?
optionalonDestroy: (args: {id:string; }) =>void
A function to call when the element is destroyed.
Parameters
args
{ id: string; }
The arguments passed to the function.
args.id
string
The id of the element.
Returns
void
Last updated
Was this helpful?