DropDownList
Represents the KendoReact DropDownList component.
Accepts properties of type DropDownListProps.
Obtaining the DropDownListHandle
.
class App extends React.Component {
dropdownlist = null;
render() {
return (
<div>
<DropDownList
data={[ "Albania", "Andorra", "Austria", "Belarus" ]}
ref={component => this.dropdownlist = component}
/>
<button onClick={() => alert(this.dropdownlist.value)}>alert value</button>
</div>
);
}
}
ReactDOM.render(<App />, document.querySelector('my-app'));
Name | Type | Default | Description |
---|---|---|---|
props |
|
The props of the DropDownList component. |