WarUI

Plugin Registration and Lifecycle

GRID-A26-F13P0beyond-baselinePlanned

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

registerPluginpluginsinitupdatedisposepluginApipluginStateChanged

Acceptance 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)