data
- function
Function to extract the content from the node for the indexing. The
default uses the node.html()
. In case if you need to
index the id of the nodes, here goes one example:
Example indexing the id of the node instead of the HTML:
function(node) {
return node.attr('id');
}
Default Value: function(node) { return node.html(); }
Number of milliseconds the filter will be applied to the node list
after the user stop typing.
Default Value: 250
hide
- function
Function to be executed to hide the node when the data of that node
not matches with the filter.
Default Value: function(node) { return node.hide(); }
Index for the nodes content.
Default Value: []
input
- Node | String
The value
of this input node is used to filter the
results.
The input value
need to matches with this RegExp to be
accept as a filter (i.e., in order to accept only digits you
could use /\d+/g).
Default Value: (.)*
nodes
- Node | NodeList
Nodes to be indexed for the filtering.
show
- function
Function to be executed to show the node when the data of that node
matches with the filter.
Default Value: function(node) { return node.show(); }