Trigger() function

The @Trigger decorator can be used on script functions to show a button for it in the property panel

Signature:

export declare function Trigger(opts?: TriggerOptions): (target: any, key: any) => void;

Parameters

Parameter

Type

Description

opts

TriggerOptions

(Optional)

**Returns:**

(target: any, key: any) => void