New to KendoReact? Learn about KendoReact Free.
AutoComplete
Represents the KendoReact AutoComplete component.
Accepts properties of type AutoCompleteProps.
Obtaining the ref
returns an object of type AutoCompleteHandle.
jsx
const App = () => {
const autocomplete = React.useRef(null);
return (
<div>
<AutoComplete
data={[ "Albania", "Andorra", "Austria", "Belarus" ]}
ref={autocomplete}
/>
<Button onClick={() => alert(autocomplete.current.value)}>alert value</Button>
</div>
);
}
Name | Type | Default | Description |
---|---|---|---|
props |
|
The props of the AutoComplete component. |