Plugin.registerInstanceFunc method
Plugin › registerInstanceFunc
Unofficial
Registers a Bases formula function for a value type, such as thecontains() of a string, unregistered automatically on unload. The function is also found on every subclass of type, and its first parameter is the value it is called on.Signature:
registerInstanceFunc(type: Constructor<Value>, func: FormulaFunction): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| type | Constructor<Value> | The value class to register the function for, such as StringValue. |
| func | FormulaFunction | The function to register. |
Returns: void