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