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
class App extends React.Component {
autocomplete = null;
render() {
return (
<div>
<AutoComplete
data={[ "Albania", "Andorra", "Austria", "Belarus" ]}
ref={component => this.autocomplete = component}
/>
<button onClick={() => alert(this.autocomplete.value)}>alert value</button>
</div>
);
}
}
ReactDOM.render(<App />, document.querySelector('my-app'));
Name | Type | Default | Description |
---|---|---|---|
props |
|
The props of the AutoComplete component. |