Caplin Trader 4.7.1

Interface: module:caplin/grid/decorator/GridDecorator

module:caplin/grid/decorator/GridDecorator

The GridDecorator interface is implemented by classes that wish to augment the functionality provided by the core grid implementation. Grid decorators are not only able to modify the HTML rendered by the grid, including adding any event listeners they may wish to add, but are also able to register themselves as listeners on the module:caplin/grid/GridRowModel, the module:caplin/grid/GridRowSelectionModel, the module:caplin/grid/GridColumnModel and/or the module:caplin/grid/GridView itself — the module:caplin/component/ComponentLifecycleEvents events are forwarded on by the module:caplin/grid/GridView to any interested decorators.
Implementations:

Methods

setGridView(oGridView)

The opportunity for the decorator to add itself as a listener to the module:caplin/grid/GridRowModel, the module:caplin/grid/GridRowSelectionModel, the module:caplin/grid/GridColumnModel and/or the module:caplin/grid/GridView itself.

At the point at which this method is called, the HTML for the grid will not yet be rendered. Decorators that need to augment the HTML as soon as it is first rendered must register themselves as a listener on the module:caplin/grid/GridView, and wait for the module:caplin/grid/GridViewListener#onContainerHtmlRendered event to be fired.

Parameters:
Name Type Description
oGridView module:caplin/grid/GridView The grid view to which this decorator is being attached.
Implementations: