@revolist/revogrid / JSX / RevogrExtra
Interface: RevogrExtra
Contains extra elements for stencil components. Performs rendering and updates for external components.
Example
ts
In Plugins if you want to add extra elements to grid and use stenciljs vnodes reactivity:
function paginationPanel(this: PaginationPlugin, config: { refresh: () => void }) {
// use `config.refresh()` for component to re-render
return h('div')
}
revogrid.registerVNode = [
...existingNodes,
paginationPanel.bind(this)
];
/**
Properties
Property | Type | Description | Defined in |
---|---|---|---|
nodes? | (VNode | (c : ExtraNodeFuncConfig ) => VNode )[] | Nodes to render | src/components.d.ts:1805 |