API REFERENCE
registerCellRenderer
Registers a named cell renderer and returns the result.
What does this API do?
Registers a named cell renderer and returns the result.
Exact input and result types
registerCellRenderer(name: string, renderer: CellRenderer): Promise<boolean>| Arguments | Required | Type |
|---|---|---|
| name | Required | string |
| renderer | Required | CellRenderer |
The return type is Promise<boolean>.
Usage flow
After registering and initializing the Grid element, call grid.registerCellRenderer(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.
Read related types
Feature explanations and examples
- Customize cell appearance
Cell renderers change how data is displayed. Use them for status badges, links, and action buttons while retaining the original values for sorting and filtering.