From 2d709cbc393195c0ef7cef517766e237504b8fab Mon Sep 17 00:00:00 2001 From: aliounedia Date: Thu, 25 Sep 2014 11:10:07 +0200 Subject: [PATCH 1/3] update --- _includes/example-backends-online-csv.js | 7 ++++--- css-site/style.css | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/_includes/example-backends-online-csv.js b/_includes/example-backends-online-csv.js index 9cf128b3..dbafd28b 100644 --- a/_includes/example-backends-online-csv.js +++ b/_includes/example-backends-online-csv.js @@ -1,7 +1,7 @@ // Create the dataset in the usual way // Note the additional options you can specify for parsing the CSV file var dataset = new recline.Model.Dataset({ - url: '{{page.root}}demos/data/sample.csv', + url: '{{page.root}}/demos/data/sample.csv', backend: 'csv', // delimiter: ',', // quotechar: '"', @@ -14,7 +14,8 @@ dataset.fetch(); // show the data for illustrations sake var grid = new recline.View.SlickGrid({ - model: dataset + model: dataset, + el: $('#my-online-csv') }); -$('#my-online-csv').append(grid.el); +grid.visible = true; diff --git a/css-site/style.css b/css-site/style.css index dea128c3..f6fc5641 100644 --- a/css-site/style.css +++ b/css-site/style.css @@ -212,3 +212,6 @@ section { margin-bottom: 20px; } +#my-online-csv { + height: 100px; +} From a3b1a3e7e88b82bc4829fc8fdd582193f4e61431 Mon Sep 17 00:00:00 2001 From: aliounedia Date: Thu, 25 Sep 2014 11:12:51 +0200 Subject: [PATCH 2/3] Fix bug in backends ducumentation #449 --- _includes/example-backends-online-csv.js | 1 - 1 file changed, 1 deletion(-) diff --git a/_includes/example-backends-online-csv.js b/_includes/example-backends-online-csv.js index dbafd28b..f5f241e5 100644 --- a/_includes/example-backends-online-csv.js +++ b/_includes/example-backends-online-csv.js @@ -11,7 +11,6 @@ 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. // dataset.fetch.done(function(dataset) { console.log(dataset.recordCount)}); dataset.fetch(); - // show the data for illustrations sake var grid = new recline.View.SlickGrid({ model: dataset, From b2f90d5f6a09c4ce63b6fec2f8b30eb00183764e Mon Sep 17 00:00:00 2001 From: aliounedia Date: Thu, 25 Sep 2014 11:28:09 +0200 Subject: [PATCH 3/3] Fix bug in backends ducumentation #449 --- _includes/example-backends-online-csv.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_includes/example-backends-online-csv.js b/_includes/example-backends-online-csv.js index f5f241e5..a03fc362 100644 --- a/_includes/example-backends-online-csv.js +++ b/_includes/example-backends-online-csv.js @@ -1,7 +1,7 @@ // Create the dataset in the usual way // Note the additional options you can specify for parsing the CSV file var dataset = new recline.Model.Dataset({ - url: '{{page.root}}/demos/data/sample.csv', + url: '{{page.root}}demos/data/sample.csv', backend: 'csv', // delimiter: ',', // 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. // dataset.fetch.done(function(dataset) { console.log(dataset.recordCount)}); dataset.fetch(); + // show the data for illustrations sake var grid = new recline.View.SlickGrid({ model: dataset,