Plugin Registration and Lifecycle
A plugin contract with register, init(api), optional update and dispose hooks. The lifecycle is predictable and plugins can be added or removed at runtime without leaks.
Planned. This page shows the specification from issue #206. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid with a sample row-counter plugin enabled and a lifecycle log panel.
Expected behavior
The log shows the init, update and dispose order. After dispose, the plugin leaves no listeners, DOM nodes or timers.
Planned API surface
registerPluginpluginsinitupdatedisposepluginApipluginStateChangedAcceptance criteria
- init runs once, after the grid is ready (pending)
- dispose runs on removal and on grid destroy (pending)
- Listeners registered through pluginApi are removed automatically on dispose (pending)
- Registering the same plugin id twice is a no-op that logs a warning (pending)