Skip to main content

Interface: SearchResultsProps

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.

items

readonly ElementModel[]

List of entities to display.

onSelectionChanged

(newSelection: ReadonlySet<ElementIri>) => void

Handler to change a selected set of entities.

selection

ReadonlySet<ElementIri>

Set of selected entities from items.

singleSelectOnClick?

boolean

Whether to unselect previously selected item on click and require to click with Control/Meta key to select multiple items.

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

Default

false

useDragAndDrop?

boolean

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

Default

true