RuledPlugin
A plugin: a plain object a host passes in plugins. It needs nothing from
@ruled/sheet at run time, only its types.
Properties
Section titled “Properties”Methods
Section titled “Methods”setup()
Section titled “setup()”setup(ctx): void | (() => void) | Promise<void | (() => void)>;Called once, as soon as the editor is made and the code that runs plugins has loaded. Return a function to clean up, or nothing; or a promise
of either, which the handle’s ready waits for. A cleanup it resolves to after the plugin was stopped runs at once.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
ctx |
PluginContext |
Returns
Section titled “Returns”void | (() => void) | Promise<void | (() => void)>