The getItems method allows the user to find list items by index or by value.
Javascript (Usage) | |
---|
$(function () {
var returnsValue; // Type: object
// Parameters
var indices; // Type: undefined
var byIndex; // Type: bool
returnsValue = $(".selector").wijlist("getItems", indices, byIndex);
});
|
Javascript (Specification) | |
---|
function getItems(
: undefined,
: bool
) : object;
|
Parameters
- indices
- the indices of the items.
- byIndex
- Indicates the indices parameter is indices or values of items.
If true, it's used as the index/indices of the item(s) to get.
If false, it's used as the value/values of the item(s) to get.
Return Value
the item at the specified index or with the specified value.