ComboBox
A subclass of React.Component.
Represents the KendoReact ComboBox component.
class App extends React.Component {
combobox = null;
render() {
return (
<div>
<ComboBox
data={[ "Albania", "Andorra", "Austria", "Belarus" ]}
ref={component => this.combobox = component}
/>
<button onClick={() => alert(this.combobox.value)}>alert value</button>
</div>
);
}
}
ReactDOM.render(<App />, document.querySelector('my-app'));
props
Readonly<ComboBoxProps> intersected with Readonly<{ children?: ReactNode; }>
The props of the ComboBox component.
index
number
The index of the selected item.
name
string | undefined
Gets the name
property of the ComboBox.
validity
FormComponentValidity
Represents the validity state into which the component is set.
value
any
The value of the ComboBox.