@revolist/revogrid / Components / 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:429 |
refresh | () => Promise <void > | Refreshes the extra component. Useful if you want to manually force the component to re-render. | src/components.d.ts:436 |