Name | Type | Default |
animationType
|
ComboBoxAnimationType
|
'slide'
|
ComboBoxAnimationType: "fade" | "slide" | "none"
Sets the type of the animation.
Possible Values:
'fade'
'slide'
'none'
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} animationType={ 'fade'} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
autoComplete
|
boolean
|
false
|
Sets or gets the whether the 'autoComplete' feature is enabled or disabled. When this feature is enabled, the jqxComboBox displays in the popup listbox, only the items that match the searched text.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} autoComplete={true} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
autoOpen
|
boolean
|
false
|
Sets or gets whether the DropDown is automatically opened when the mouse cursor is moved over the widget.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} autoOpen={true} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
autoItemsHeight
|
boolean
|
false
|
Sets or gets whether items will wrap when they reach the width of the dropDown.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={100} height={25} source={this.state.source} selectedIndex={4} autoItemsHeight={true} dropDownHeight={250} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
autoDropDownHeight
|
boolean
|
false
|
Sets or gets whether the height of the jqxComboBox's ListBox displayed in the widget's DropDown is calculated as a sum of the items heights.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} autoDropDownHeight={true} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
closeDelay
|
number
|
400
|
Sets the delay of the 'close' animation.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} closeDelay={2000} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
checkboxes
|
boolean
|
false
|
Determines whether checkboxes will be displayed next to the list items.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} checkboxes={true} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
disabled
|
boolean
|
false
|
Enables/disables the jqxComboBox.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} disabled={true} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
displayMember
|
string
|
""
|
Sets or gets the displayMember of the Items. The displayMember specifies the name of an object property to display. The name is contained in the collection specified by the 'source' property.
|
dropDownHorizontalAlignment
|
ComboBoxDropDownHorizontalAlignment
|
'left'
|
ComboBoxDropDownHorizontalAlignment: "left" | "right"
Sets or gets the DropDown's alignment.
Possible Values:
'left'
'right'
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} dropDownWidth={340} dropDownHorizontalAlignment={ 'left'} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
dropDownVerticalAlignment
|
ComboBoxDropDownVerticalAlignment
|
'bottom'
|
ComboBoxDropDownVerticalAlignment: "top" | "bottom"
Sets or gets the DropDown's alignment.
Possible Values:
'top'
'bottom'
|
dropDownHeight
|
number | string
|
200
|
Sets or gets the height of the jqxComboBox's ListBox displayed in the widget's DropDown.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} dropDownHeight={300} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
dropDownWidth
|
number | string
|
200
|
Sets or gets the width of the jqxComboBox's ListBox displayed in the widget's DropDown.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} dropDownWidth={300} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
enableHover
|
boolean
|
true
|
Enables/disables the hover state.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} enableHover={false} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
enableSelection
|
boolean
|
true
|
Enables/disables the selection.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} enableSelection={false} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
enableBrowserBoundsDetection
|
boolean
|
false
|
Sets or gets whether the dropdown detects the browser window's bounds and automatically adjusts the dropdown's position.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} enableBrowserBoundsDetection={true} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
height
|
string | number
|
null
|
Sets or gets the jqxComboBox height.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
itemHeight
|
number
|
-1
|
Sets or gets the height of the jqxComboBox Items. When the itemHeight == - 1, each item's height is equal to its desired height.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} itemHeight={25} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
multiSelect
|
boolean
|
false
|
Determines whether the jqxComboBox is in multi-select mode.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} multiSelect={true} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
minLength
|
number
|
2
|
Determines the minimum number of characters that need to be entered by the user for search in remote data source when remoteAutoComplete property is set to true.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} minLength={2} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
openDelay
|
number
|
350
|
Sets or gets the delay of the 'open' animation.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} openDelay={2000} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
popupZIndex
|
number
|
20000
|
Sets or gets the popup's z-index.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} popupZIndex={2000} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
placeHolder
|
string
|
""
|
Sets or gets the input field's place holder.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={-1} placeHolder={ 'Please type an item'} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
remoteAutoComplete
|
boolean
|
false
|
Determines whether the items displayed in the popup come from a remote data source. When this property is set to true, the jqxComboBox calls the 'search' callback function when the user types into the input field.
|
remoteAutoCompleteDelay
|
number
|
300
|
Determines the delay between two keystrokes. The search callback function is called on timeout. The value is specified in milliseconds.
|
renderer
|
(index?: ComboBoxRenderer['index'], label?: ComboBoxRenderer['label'], value?: ComboBoxRenderer['value']) => string
|
null
|
Interface ComboBoxRenderer { index?: number; label?: number | string; value?: number | string; }
Callback function which is called when an item is rendered. By using the renderer function, you can customize the look of the list items.
|
renderSelectedItem
|
(index?: ComboBoxRenderSelectedItem['index'], item?: ComboBoxRenderSelectedItem['item']) => string
|
null
|
Interface ComboBoxRenderSelectedItem { index?: number; item?: any; }
Callback function which is called when the selected item is rendered. By using the renderSelectedItem function, you can customize the displayed text in the ComboBox's input field.
|
rtl
|
boolean
|
false
|
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} rtl={true} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
selectedIndex
|
number
|
-1
|
Sets or gets the selected index.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={0} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
showArrow
|
boolean
|
true
|
Determines whether the jqxComboBox shows its dropdown button.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} showArrow={false} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
showCloseButtons
|
boolean
|
true
|
Determines whether the jqxComboBox shows the items close buttons in multi-select mode.
|
searchMode
|
ComboBoxSearchMode
|
startswith
|
ComboBoxSearchMode: "none" | "contains" | "containsignorecase" | "equals" | "equalsignorecase" | "startswithignorecase" | "startswith" | "endswithignorecase" | "endswith"
Sets or gets the item search mode. When the user types into the edit field, the jqxComboBox widget tries to find the searched item using the entered text and the selected search mode.
Possible Values:
'none'
'contains'
'containsignorecase'
'equals'
'equalsignorecase'
'startswithignorecase'
'startswith'
'endswithignorecase'
'endswith'
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={-1} searchMode={ 'contains'} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
search
|
(searchString?: ComboBoxSearch['searchString']) => void
|
null
|
Interface ComboBoxSearch { searchString?: string; }
Callback function which is called when the 'remoteAutoComplate' property is set to true and the user types into the ComboBox's input field.
|
source
|
any
|
null
|
Sets or gets the items source.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
scrollBarSize
|
number | string
|
17
|
Sets or gets the scrollbars size.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} scrollBarSize={10} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
template
|
ComboBoxTemplate
|
'default'
|
ComboBoxTemplate: "default" | "primary" | "success" | "warning" | "danger" | "info"
Determines the button's template as an alternative of the default styles.
Possible Values:
'default' - the default template. The style depends only on the "theme" property value.
'primary' - dark blue style for extra visual weight.
'success' - green style for successful or positive action.
'warning' - orange style which indicates caution.
'danger' - red style which indicates a dangerous or negative action.
'info' - blue button, not tied to a semantic action or use.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} template={ 'success'} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
theme
|
string
|
''
|
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} theme={ 'material'} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
validateSelection
|
(itemValue?: ComboBoxValidateSelection['itemValue']) => boolean
|
null
|
Interface ComboBoxValidateSelection { itemValue?: string; }
Determines whether an item can be selected in multi-select mode.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { validateSelection: (itemValue: string): any => { return itemValue === 'Breve'; }, source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} validateSelection={this.state.validateSelection} multiSelect={true} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
valueMember
|
string
|
""
|
Sets or gets the valueMember of the Items. The valueMember specifies the name of an object property to set as a 'value' of the list items. The name is contained in the collection specified by the 'source' property.
|
width
|
string | number
|
null
|
Sets or gets the jqxComboBox's width.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
|
bindingComplete
|
Event
|
|
This event is triggered when the data binding operation is completed.
Code examples
Bind to the bindingComplete event of jqxComboBox.
|
checkChange
|
Event
|
|
This event is triggered when an item is checked/unchecked.
Code examples
Bind to the checkChange event of jqxComboBox.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.setOptions({ checkboxes: true }); } public render() { return ( <JqxComboBox ref={this.myComboBox} onCheckChange={this.onCheckChange} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } private onCheckChange(e: Event): void { alert( 'do something...'); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
close
|
Event
|
|
This event is triggered when the popup ListBox is closed.
Code examples
Bind to the close event of jqxComboBox.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} onClose={this.onClose} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } private onClose(e: Event): void { alert( 'do something...'); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
change
|
Event
|
|
This event is triggered when the user selects an item.
Code examples
Bind to the change event of jqxComboBox.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} onChange={this.onChange} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } private onChange(e: Event): void { alert( 'do something...'); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
open
|
Event
|
|
This event is triggered when the popup ListBox is opened.
Code examples
Bind to the open event of jqxComboBox.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} onOpen={this.onOpen} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } private onOpen(e: Event): void { alert( 'do something...'); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
select
|
Event
|
|
This event is triggered when the user selects an item.
Code examples
Bind to the select event of jqxComboBox.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} onSelect={this.onSelect} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } private onSelect(e: Event): void { alert( 'do something...'); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
unselect
|
Event
|
|
This event is triggered when the user unselects an item.
Code examples
Bind to the unselect event of jqxComboBox.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public render() { return ( <JqxComboBox ref={this.myComboBox} onUnselect={this.onUnselect} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } private onUnselect(e: Event): void { alert( 'do something...'); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
|
Name | Arguments | Return Type |
addItem
|
item
|
|
Adds a new item to the jqxComboBox. Returns 'true', if the new item is added or 'false' if the item is not added.
- label - determines the item's label.
- value - determines the item's value.
- disabled - determines whether the item is enabled/disabled.
- checked - determines whether item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - determines the item's display html. This can be used instead of label.
- group - determines the item's group.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.addItem( 'item'); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
clearSelection
|
None
|
|
Clears all selected items.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.clearSelection(); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
clear
|
None
|
|
Clears all items.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.clear(); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
close
|
None
|
|
|
checkIndex
|
index
|
|
Checks a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to check the first item, the 'checkIndex' method should be called with parameter 0.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.checkIndex(0); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
checkItem
|
item
|
|
Checks an item.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.checkItem( 'Affogato'); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
checkAll
|
None
|
|
Checks all list items when the 'checkboxes' property value is true.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.checkAll(); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
destroy
|
None
|
|
Destroys the widget.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.destroy(); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
disableItem
|
item
|
|
Disables an item. Item is an object.
- label - determines the item's label.
- value - determines the item's value.
- disabled - determines whether the item is enabled/disabled.
- checked - determines whether item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - determines the item's display html. This can be used instead of label.
- group - determines the item's group.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.disableItem( 'Affogato'); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
disableAt
|
index
|
|
Disables an item by index. Index is a number.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.disableAt(0); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
enableItem
|
item
|
|
Enables an item. Item is an object.
- label - determines the item's label.
- value - determines the item's value.
- disabled - determines whether the item is enabled/disabled.
- checked - determines whether item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - determines the item's display html. This can be used instead of label.
- group - determines the item's group.
|
enableAt
|
index
|
|
Enables a disabled item by index. Index is a number.
|
ensureVisible
|
index
|
|
Ensures that an item is visible. index is number. When necessary, the jqxComboBox scrolls to the item to make it visible.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.ensureVisible(9); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
focus
|
None
|
|
Sets the focus to the widget.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.focus(); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
getItem
|
index
|
|
Gets item by index. The returned value is an object with the following fields:
- label - gets item's label.
- value - gets the item's value.
- disabled - gets whether the item is enabled/disabled.
- checked - gets whether the item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - gets the item's display html. This can be used instead of label.
- index - gets the item's index.
- group - gets the item's group.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.getItem(0); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
getItemByValue
|
value
|
|
Gets an item by its value. The returned value is an object with the following fields:
- label - gets item's label.
- value - gets the item's value.
- disabled - gets whether the item is enabled/disabled.
- checked - gets whether the item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - gets the item's display html. This can be used instead of label.
- index - gets the item's index.
- group - gets the item's group.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.getItemByValue( 'Cappuccino'); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
getVisibleItems
|
None
|
|
Gets all items displayed in the ComboBox. The method could be useful for getting the currently visible items after auto complete. The returned value is an array of Items.
- label - gets item's label.
- value - gets the item's value.
- disabled - gets whether the item is enabled/disabled.
- checked - gets whether the item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - gets the item's display html. This can be used instead of label.
- index - gets the item's index.
- group - gets the item's group.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.getVisibleItems(); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
getItems
|
None
|
|
Gets all items. The returned value is an array of Items.
- label - gets item's label.
- value - gets the item's value.
- disabled - gets whether the item is enabled/disabled.
- checked - gets whether the item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - gets the item's display html. This can be used instead of label.
- index - gets the item's index.
- group - gets the item's group.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.getItems(); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
getCheckedItems
|
None
|
|
Gets the checked items. The returned value is an array of Items.
- label - gets item's label.
- value - gets the item's value.
- disabled - gets whether the item is enabled/disabled.
- checked - gets whether the item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - gets the item's display html. This can be used instead of label.
- index - gets the item's index.
- group - gets the item's group.
|
getSelectedItem
|
None
|
|
Gets the selected item. The returned value is an object or null(if there is no selected item).
- label - gets item's label.
- value - gets the item's value.
- disabled - gets whether the item is enabled/disabled.
- checked - gets whether the item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - gets the item's display html. This can be used instead of label.
- index - gets the item's index.
- group - gets the item's group.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.getSelectedItem(); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
getSelectedItems
|
None
|
|
Gets the selected items when "multiselect" is turned on. The returned value is an Array with objects.
- label - gets item's label.
- value - gets the item's value.
- disabled - gets whether the item is enabled/disabled.
- checked - gets whether the item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - gets the item's display html. This can be used instead of label.
- index - gets the item's index.
- group - gets the item's group.
|
getSelectedIndex
|
None
|
|
Gets the index of the selected item. The returned value is the index of the selected item. If there's no selected item, -1 is returned.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.getSelectedIndex(); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
insertAt
|
item, index
|
|
Inserts a new item to the jqxComboBox. Returns 'true', if the new item is inserted or false if the insertaion fails. The first parameter is object or string - the new item. The second parameter is number - the item's index.
- label - determines the item's label.
- value - determines the item's value.
- disabled - determines whether the item is enabled/disabled.
- checked - determines whether item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - determines the item's display html. This can be used instead of label.
- group - determines the item's group.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.insertAt( 'Item1',0); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
isOpened
|
None
|
|
Returns true, if the popup is opened. Otherwise returns false.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.isOpened(); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
indeterminateIndex
|
index
|
|
Indeterminates a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to indeterminate the first item, the 'indeterminateIndex' method should be called with parameter 0.
|
indeterminateItem
|
item
|
|
|
loadFromSelect
|
selectTagId
|
|
Loads list items from a 'select' tag.
|
open
|
None
|
|
Shows the popup listbox.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.open(); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
removeItem
|
item
|
|
Removes an item from the listbox. Parameter type: object returned by the "getItem" method or string - the value of an item. Returns 'true', if the item is removed or 'false', if the item is not removed.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.removeItem( 'Cappuccino'); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
removeAt
|
index
|
|
Removes an item from the listbox. Parameter type: number - the index of the item. The method returns 'true', if the item is removed or 'false', if the item is not removed.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.removeAt(4); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
selectIndex
|
index
|
|
Selects an item by index. The index is zero-based, i.e to select the first item, the 'selectIndex' method should be called with parameter 0.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.selectIndex(0); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
selectItem
|
item
|
|
Selects an item.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.selectItem( 'Affogato'); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
searchString
|
None
|
|
Method: searchString
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.searchString(); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
updateItem
|
item, itemValue
|
|
Updates an item. The first parameter is the new item. The second parameter could be an existing item or the value of an existing item.
- label - determines the item's label.
- value - determines the item's value.
- disabled - determines whether the item is enabled/disabled.
- checked - determines whether item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - determines the item's display html. This can be used instead of label.
- group - determines the item's group.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.updateItem( 'New Item','Cappuccino'); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
updateAt
|
item, index
|
|
Updates an item. The first parameter is the new item. The second parameter is the index of the item to be updated.
- label - determines the item's label.
- value - determines the item's value.
- disabled - determines whether the item is enabled/disabled.
- checked - determines whether item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - determines the item's display html. This can be used instead of label.
- group - determines the item's group.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.updateAt( 'Item1',0); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
unselectIndex
|
index
|
|
Unselects item by index. The index is zero-based, i.e to unselect the first item, the 'unselectIndex' method should be called with parameter 0.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.unselectIndex(4); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
unselectItem
|
item
|
|
Unselects an item.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.unselectItem( 'Cappuccino'); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|
uncheckIndex
|
index
|
|
Unchecks a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to uncheck the first item, the 'uncheckIndex' method should be called with parameter 0.
|
uncheckItem
|
item
|
|
|
uncheckAll
|
None
|
|
Unchecks all list items when the 'checkboxes' property value is true.
|
val
|
value
|
|
Sets or gets the selected value.
/* tslint:disable */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css'; import JqxComboBox, { IComboBoxProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcombobox'; class App extends React.PureComponent<{}, IComboBoxProps> { private myComboBox = React.createRef<JqxComboBox>(); constructor(props: {}) { super(props); this.state = { source: [ 'Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee', 'Irish coffee', 'Liqueur coffee' ] } } public componentDidMount(): void { this.myComboBox.current!.val(); } public render() { return ( <JqxComboBox ref={this.myComboBox} width={200} height={25} source={this.state.source} selectedIndex={4} /> ); } } ReactDOM.render( <App />, document.querySelector( '#app') as HTMLElement);
|