advancedSearchDelimiter | string | | Delimiter in the query string for pairing attributes with search values.
Required whenever attributes are passed as props. |
attributes | string[] | SearchInputSearchAttribute[] | [] | Array of attribute values used for dynamically generated advanced search. |
className | string | | Additional classes added to the advanced search menu. |
formAdditionalItems | React.ReactNode | | |
getAttrValueMap | () => { [key: string]: string } | | Function which builds an attribute-value map by parsing the value in the search input. |
hasWordsAttrLabel | React.ReactNode | 'Has words' | Attribute label for strings unassociated with one of the provided listed attributes. |
isSearchMenuOpen | boolean | | Flag for toggling the open/close state of the advanced search menu. |
onChange | (event: React.FormEvent<HTMLInputElement>, value: string) => void | | A callback for when the input value changes. |
onClear | (event: React.SyntheticEvent<HTMLButtonElement>) => void | | A callback for when the user clicks the clear button. |
onSearch | (
event: React.SyntheticEvent<HTMLButtonElement>,
value: string,
attrValueMap: { [key: string]: string }
) => void | | A callback for when the search button is clicked. |
onToggleAdvancedMenu | (e: React.SyntheticEvent<HTMLButtonElement>) => void | | A callback for when the open advanced search button is clicked. |
parentInputRef | React.RefObject<any> | | Ref of the input element within the search input. |
parentRef | React.RefObject<any> | | Ref of the div wrapping the whole search input. |
resetButtonLabel | string | 'Reset' | Label for the button which resets the advanced search form and clears the search input. |
submitSearchButtonLabel | string | 'Search' | Label for the button which calls the onSearch event handler. |
value | string | '' | Value of the search input. |