Home > @uniformdev/mesh-sdk-react > DamSelectedItemProps
DamSelectedItemProps interface
Warning: This API is now obsolete.
please use ObjectSearchResultItem - https://mesh-design-system.netlify.app/?path=/story/object-search--object-search-result-item
Signature:
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
itemDetailsRendererComponent? | React__default.ComponentType<{ item: TResult; }> | (Optional) Allows for customizing how item details, e.g. item preview, item metadata, are rendered. If not defined, item details will be rendered using the default (built-in) renderer. | |
logoIcon? | string | React__default.ComponentType<{ className?: string; }> | (Optional) Logo icon is used for the <code>editLink</code> if <code>editLink</code> is a string value, otherwise the icon is not used. | |
onDeselect | (item: TResult) => void | Callback that is invoked when the "Unlink" (deselect) button is clicked. | |
onEditClosed? | (item: TResult) => void | (Optional) If <code>editLink</code> is a string value, an <code><a></code> element will be rendered for the <code>editLink</code> and the <code>onEditClosed</code> callback will be invoked when the tab opened by clicking the <code><a></code> element is closed. | |
selectedItem | TResult | The item used for rendering this component. |