Name | Type | Default | ||||||
---|---|---|---|---|---|---|---|---|
disabled | Boolean | false | ||||||
Enables or disables the jqxInput. Code examples
Set the
Get the
Try it: disabled is set to true
|
||||||||
dropDownWidth | Number/String | null | ||||||
Sets or gets the jqxInput's dropDown width. Code examples
Set the
Get the
Try it: dropDownWidth is set to 200
|
||||||||
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. Code example
Set the
Get the
|
||||||||
height | Number/String | null | ||||||
Sets or gets the jqxInput's height. Code examples
Set the
Get the
Try it: height is set to 25
|
||||||||
items | Number | 8 | ||||||
Sets or gets the maximum number of items to display in the popup menu. Code example
Set the
Get the
Try it: items is set to 10
|
||||||||
minLength | Number | 1 | ||||||
Sets or gets the minimum character length needed before triggering auto-complete suggestions. Code example
Set the
Get the
Try it: minLength is set to 1
|
||||||||
maxLength | Number | null | ||||||
Sets or gets the maximum character length of the input. Code example
Set the
Get the
Try it: maxLength is set to 10
|
||||||||
opened | Boolean | false | ||||||
Sets or gets a value indicating whether the auto-suggest popup is opened. Code example
Set the
Get the
Try it: opened is set to true
|
||||||||
placeHolder | String | "" | ||||||
Sets or gets the input's place holder. Code example
Set the
Get the
|
||||||||
popupZIndex | Number | 20000 | ||||||
Sets or gets the auto-suggest popup's z-index. Code example
Set the
Get the
Try it: popupZIndex is set to 99999
|
||||||||
query | String | "" | ||||||
Determines the input's query. Code example
Set the
Get the
Try it: query is set to item
|
||||||||
renderer | function | null | ||||||
Enables you to update the input's value, after a selection from the auto-complete popup. Code example
Set the
|
||||||||
rtl | Boolean | false | ||||||
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. Code example
Set the
Get the
Try it: rtl is set to true
|
||||||||
searchMode | String | 'default' | ||||||
Sets or gets the search mode. When the user types into the edit field, the jqxInput widget tries to find the searched item using the entered text and the selected search mode. Possible Values:
Code example
Set the
Get the
|
||||||||
source | Array, function | [] | ||||||
Sets the widget's data source. The 'source' function is passed two arguments, the input field's value and a callback function. The 'source' function may be used synchronously by returning an array of items or asynchronously via the callback. Code example
Initialize a jqxInput with the
Try it: source is set to 'countries'
|
||||||||
theme | String | '' | ||||||
Sets the widget's theme. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. In order to set a theme, you need to do the following:
Try it: theme is set to 'energyblue'
|
||||||||
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. Code example
Set the
Get the
|
||||||||
width | Number/String | null | ||||||
Sets or gets the jqxInput's width. Code examples
Set the
Get the
Try it: width is set to 200
|
||||||||
Events |
||||||||
change | Event | |||||||
This event is triggered when the value is changed. Code examples
Bind to the
|
||||||||
close | Event | |||||||
This event is triggered when the auto-suggest popup is closed. Code examples
Bind to the
|
||||||||
open | Event | |||||||
This event is triggered when the auto-suggest popup is opened. Code examples
Bind to the
|
||||||||
select | Event | |||||||
This event is triggered when an item is selected from the auto-suggest popup. Code examples
Bind to the
|
||||||||
Methods |
||||||||
destroy | Method | |||||||
Destroys the widget.
None Code examples
Invoke the
Try it: destroys the jqxInput
|
||||||||
focus | Method | |||||||
Focuses the widget.
None Code examples
Invoke the
Try it: focuses the jqxInput
|
||||||||
selectAll | Method | |||||||
Selects the text in the input field.
None Code examples
Invoke the
|
||||||||
val | Method | |||||||
Sets or gets the value.
String Code examples
Get the
Set the
Try it: sets the jqxInput value
|