|
|
|
width
# |
string | number
|
560
|
Sets or gets the width of the widget.
Code example: #
$('#myPickList').jqxPickList({width: 560});
|
|
height
# |
string | number
|
340
|
Sets or gets the height of the widget.
Code example: #
$('#myPickList').jqxPickList({height: 340});
|
|
source
# |
Array | Object
|
null
|
Sets or gets the pool of available items. Accepts an array of strings, an array of objects, or a jqxDataAdapter instance.
|
|
selectedItems
# |
Array
|
[]
|
Sets or gets the values that start in the Selected list. Values are matched against valueMember.
|
|
displayMember
# |
string
|
""
|
Sets or gets the field of a source object used as the item label.
|
|
valueMember
# |
string
|
""
|
Sets or gets the field of a source object used as the item value.
|
Sets or gets the header text of the available list. Set to null to hide the header row.
|
Sets or gets the header text of the selected list. Set to null to hide the header row.
|
|
showCounts
# |
boolean
|
true
|
Sets or gets whether item counts are shown in the list headers.
|
|
filterable
# |
boolean
|
false
|
Sets or gets whether a search box is displayed above each list.
Code example: #
$('#myPickList').jqxPickList({filterable: true});
|
|
filterPlaceHolder
# |
string
|
"Filter..."
|
Sets or gets the placeholder text of the search boxes.
|
|
searchMode
# |
string
|
"containsignorecase"
|
Sets or gets how the search boxes match items. Possible values: 'none', 'contains', 'containsignorecase', 'equals', 'equalsignorecase', 'startswith', 'startswithignorecase', 'endswith', 'endswithignorecase'.
Code example: #
$('#myPickList').jqxPickList({filterable: true, searchMode: 'startswithignorecase'});
|
|
checkboxes
# |
boolean
|
false
|
Sets or gets whether items are selected with checkboxes.
Code example: #
$('#myPickList').jqxPickList({checkboxes: true});
|
|
reorderable
# |
boolean
|
false
|
Sets or gets whether the selected list can be reordered. Adds move up and move down buttons.
Code example: #
$('#myPickList').jqxPickList({reorderable: true});
|
|
renderer
# |
Function
|
null
|
Sets or gets a custom item template. The function returns the HTML rendered for an item.
|
|
buttons
# |
Array
|
['add', 'addAll', 'remove', 'removeAll']
|
Sets or gets which transfer buttons are rendered. Valid entries are add, addAll, remove and removeAll.
|
|
itemHeight
# |
number
|
26
|
Sets or gets the height of an item, in pixels.
|
|
sourceLabel
# |
string
|
"Available items"
|
Sets or gets the accessible name of the available list.
|
|
targetLabel
# |
string
|
"Selected items"
|
Sets or gets the accessible name of the selected list.
|
|
disabled
# |
boolean
|
false
|
Sets or gets whether the widget is disabled.
|
|
rtl
# |
boolean
|
false
|
Sets or gets whether the widget is displayed right-to-left.
|
|
theme
# |
string
|
''
|
Sets or gets the theme of the widget.
|
|
|
|
create
# |
Event
|
|
This event is triggered when the widget is created.
Code example: #
Bind to the create event by type: jqxPickList
$("#jqxPickList").on('create', function (event) {
const args = event.args;
});
|
|
change
# |
Event
|
|
This event is triggered when the selected items change. The event argument carries added, removed and selectedItems.
Code example: #
Bind to the change event by type: jqxPickList
$("#jqxPickList").on('change', function (event) {
const args = event.args;
});
|
|
itemsAdded
# |
Event
|
|
This event is triggered when items are moved into the selected list. The event argument carries items.
Code example: #
Bind to the itemsAdded event by type: jqxPickList
$("#jqxPickList").on('itemsAdded', function (event) {
const args = event.args;
});
|
|
itemsRemoved
# |
Event
|
|
This event is triggered when items are moved out of the selected list. The event argument carries items.
Code example: #
Bind to the itemsRemoved event by type: jqxPickList
$("#jqxPickList").on('itemsRemoved', function (event) {
const args = event.args;
});
|
|
reordered
# |
Event
|
|
This event is triggered when the selected list is reordered. The event argument carries items.
Code example: #
Bind to the reordered event by type: jqxPickList
$("#jqxPickList").on('reordered', function (event) {
const args = event.args;
});
|
|
|
|
getSelectedItems
# |
Method
|
|
Returns the items currently in the selected list, in order.
|
|
getSelectedValues
# |
Method
|
|
Returns the values currently in the selected list, in order.
|
|
getSource
# |
Method
|
|
Returns the items remaining in the available list.
|
|
add
# |
Method
|
|
Moves one or more values into the selected list.
| Parameters |
| Name |
Type |
Description |
| values |
array | string |
A single value or an array of values. |
Return Value
None
|
|
remove
# |
Method
|
|
Moves one or more values out of the selected list.
| Parameters |
| Name |
Type |
Description |
| values |
array | string |
A single value or an array of values. |
Return Value
None
|
|
addAll
# |
Method
|
|
Moves every available item into the selected list.
|
|
removeAll
# |
Method
|
|
Moves every selected item back into the available list.
|
|
moveUp
# |
Method
|
|
Moves the highlighted items one position up in the selected list. Requires reorderable.
|
|
moveDown
# |
Method
|
|
Moves the highlighted items one position down in the selected list. Requires reorderable.
|
|
val
# |
Method
|
|
Gets the selected values, or sets them when an array is passed.
| Parameters |
| Name |
Type |
Description |
| value |
array |
An array of values to select. |
Return Value
Array
|
|
focus
# |
Method
|
|
Focuses the available list.
|
|
refresh
# |
Method
|
|
|
|
|
render
# |
Method
|
|
|
|
|
destroy
# |
Method
|
|
Destroys the widget and removes it from the DOM.
|