[#113,docs/tutorial][l]: tutorial-basics written giving introduction to dataset and associated functionality.
* Minor corrections to several other parts of docs.
This commit is contained in:
13
_includes/tutorial-basics-ex-events.js
Normal file
13
_includes/tutorial-basics-ex-events.js
Normal file
@@ -0,0 +1,13 @@
|
||||
function onChange() {
|
||||
$('.ex-events').append('Queried: ' + dataset.queryState.get('q') + '. Records matching: ' + dataset.recordCount);
|
||||
$('.ex-events').append('<br />');
|
||||
}
|
||||
|
||||
dataset.currentRecords.bind('reset', onChange);
|
||||
|
||||
dataset.query({q: 'DE'});
|
||||
dataset.query({q: 'UK'});
|
||||
dataset.query({q: 'US'});
|
||||
|
||||
dataset.unbind('reset', onChange);
|
||||
|
||||
Reference in New Issue
Block a user