Fix bug in backends ducumentation #449
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// Create the dataset in the usual way
|
// Create the dataset in the usual way
|
||||||
// Note the additional options you can specify for parsing the CSV file
|
// Note the additional options you can specify for parsing the CSV file
|
||||||
var dataset = new recline.Model.Dataset({
|
var dataset = new recline.Model.Dataset({
|
||||||
url: '{{page.root}}/demos/data/sample.csv',
|
url: '{{page.root}}demos/data/sample.csv',
|
||||||
backend: 'csv',
|
backend: 'csv',
|
||||||
// delimiter: ',',
|
// delimiter: ',',
|
||||||
// quotechar: '"',
|
// quotechar: '"',
|
||||||
@@ -11,6 +11,7 @@ var dataset = new recline.Model.Dataset({
|
|||||||
// remember this is async so if you want to do something you need to call it in done method e.g.
|
// remember this is async so if you want to do something you need to call it in done method e.g.
|
||||||
// dataset.fetch.done(function(dataset) { console.log(dataset.recordCount)});
|
// dataset.fetch.done(function(dataset) { console.log(dataset.recordCount)});
|
||||||
dataset.fetch();
|
dataset.fetch();
|
||||||
|
|
||||||
// show the data for illustrations sake
|
// show the data for illustrations sake
|
||||||
var grid = new recline.View.SlickGrid({
|
var grid = new recline.View.SlickGrid({
|
||||||
model: dataset,
|
model: dataset,
|
||||||
|
|||||||
Reference in New Issue
Block a user