Skip to main content

Interface: SearchResultsProps

Defined in: src/widgets/utility/searchResults.tsx:21

Props for SearchResults component.

See

SearchResults

Properties

PropertyTypeDescription

footer?

ReactNode

Additional components to render after the result items.

highlightText?

string

Text sub-string to highlight in the displayed entities.

isItemDisabled?

(item) => boolean

Whether to allow to select an entity from the list.

Default is to disable an entity if it has been already placed on the canvas.

items

readonly ElementModel[]

List of entities to display.

multiSelection?

boolean

Whether to allow to select multiple items at the same time.

It is possible to select a range of items by holding Shift when selecting another item to select all other items in-between as well.

Default

true

onSelectionChanged

(newSelection) => void

Handler to change a selected set of entities.

selection

ReadonlySet<ElementIri>

Set of selected entities from items.

useDragAndDrop?

boolean

Whether to allow to drag entities from the list (e.g. onto the diagram canvas).

Default

true