-
Notifications
You must be signed in to change notification settings - Fork 894
Closed
Description
Can this be added to the List API docs please?
As well as the documented:
listObj.search('Jonny'); // Only item with name Jonny is shown (also returns this item)
listObj.search(); // Show all items in list
listObj.search('Jonny', ['name']); // Only search in the 'name' columnsearch also supports a (currently undocumented) custom search function as the 2nd or 3rd argument:
listObj.search('Jonny', searchFunction); // Custom search for Jonny
listObj.search('Jonny', ['name'], searchFunction); // Custom search in the 'name' columnwhere searchFunction is a user-supplied function of the form:
function searchFunction(searchString, columns) {
for (var k = 0, kl = listObj.items.length; k < kl; k++) {
listObj.items[k].found = false;
// Insert your custom search logic here, set found = true
}
};puremana and jvns
Metadata
Metadata
Assignees
Labels
No labels