Interface: GraphSearchInputProps
Defined in: packages/graph-search/src/GraphSearchInput.tsx:12
Properties
children?
optionalchildren: [Element]
Defined in: packages/graph-search/src/GraphSearchInput.tsx:42
It's possible to customize the drop down indicator, by passing a JSX Element. First one is for the "zoom in", second for "zoom out" and third for "view whole graph".
className?
optionalclassName:string
Defined in: packages/graph-search/src/GraphSearchInput.tsx:13
labels?
optionallabels:Labels
Defined in: packages/graph-search/src/GraphSearchInput.tsx:48
Map of the labels we use in the component. This is usefull for I18N
onChange()
onChange: (
e) =>void
Defined in: packages/graph-search/src/GraphSearchInput.tsx:25
What we do when user select an item
Parameters
e
null | GraphSearchOption
Returns
void
onFocus()?
optionalonFocus: (e) =>void
Defined in: packages/graph-search/src/GraphSearchInput.tsx:30
What we do when user focus an item on the dropdown. This can be useful to highlight the focus element in the graph
Parameters
e
null | GraphSearchOption
Returns
void
postSearchResult()?
optionalpostSearchResult: (options) =>GraphSearchOption[]
Defined in: packages/graph-search/src/GraphSearchInput.tsx:36
With this function, you can filter/enhance the result displayed to the user. This can be useful to add action / messages, limit the number of result or highlight the search result in the graph
Parameters
options
Returns
type?
optionaltype:ItemType
Defined in: packages/graph-search/src/GraphSearchInput.tsx:21
If not specified, we search on nodes & edges
value?
optionalvalue:null|GraphSearchOption
Defined in: packages/graph-search/src/GraphSearchInput.tsx:17
The value of the input