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; +}