viewer-components-react icon indicating copy to clipboard operation
viewer-components-react copied to clipboard

Property widget: Need access to data provider in action button renderers

Open grigasp opened this issue 1 year ago • 0 comments

In some cases consumers may need a data provider to render their custom action button.

At the moment that is not possible, because consumer has no access to the data provider, so it can't be captured by the ActionButtonRenderer.

We should consider exposing the data provider and, possibly, the field that matches the property record, through the action button renderer props, similar to what we do with context menu (see ContextMenuItemProps). At the moment property widget simply exposes the actionButtonRenderers prop from the virtualized property grid component. We don't want a change there. Instead, we should override the prop with a new type, where the renderer receives the extended props.

grigasp avatar Aug 08 '24 10:08 grigasp