Invoke
Last updated
Last updated
Invokes an object method and returns the result of the invoked method.
Argument | Type | Required | Description | Default |
---|---|---|---|---|
instance
any
true
Instance of a Box Class or name of one to instantiate. If an empty string is provided, the method will be invoked within the same template or Box Class.
methodname
string
true
The name of the method to invoke
arguments
any
false
An array of positional arguments or a struct of named arguments to pass into the method.