Custom Action Columns
Summary
- A
customControl is the escape hatch for content AdapTable does not ship - Use
renderin React,frameworkComponentin Angular / Vue, orrenderHTMLin Vanilla - The Control still receives full
ActionColumnContext(row, node, API)
Use custom when the cell should render something that is not a button, toggle, link, select, command, menu or form — a status chip, a sparkline of your own, a framework widget, and so on.
Pick the property that matches the AdapTable variant:
| Variant | Property | Returns |
|---|---|---|
| React | render | A React node, with the Action Column context |
| Angular | frameworkComponent | An Angular component |
| Vue | frameworkComponent | A Vue component |
| Vanilla | renderHTML | HTML string (onMount / onDestroy) |
{
type: 'custom',
renderHTML: ({phase}) => {
if (phase === 'onDestroy') {
return null;
}
return '<span class="lang-chip">custom</span>';
},
}Action Columns: Custom
Badgerenders the row'sLanguageas a chip- React uses
render; Vanilla usesrenderHTML
Loading demo…
Note
hidden and disabled still apply. If the Control should disappear for some rows, prefer hidden over returning null from render.