Skip to main content

Function: SearchSectionElementTypes()

SearchSectionElementTypes(props): null | Element

Defined in: src/widgets/unifiedSearch/builtinSearchSections.tsx:24

Search section (provider) to lookup element types via tree.

Parameters

ParameterTypeDescription

props

{ draggableItems?: boolean; minSearchTermLength?: number; placeCreatedEntity?: (element, dropEvent) => Promise<void>; searchTimeout?: number; }

props.draggableItems?

boolean

Whether tree items can be dragged out e.g. onto the canvas.

Default

true

props.minSearchTermLength?

number

Minimum number of characters in the search term to initiate the search.

Default

2

props.placeCreatedEntity?

(element, dropEvent) => Promise<void>

Handler to place newly created entity from an element type tree.

props.searchTimeout?

number

Debounce timeout in milliseconds after input to perform the text search.

Default

200

Returns

null | Element