This commit is contained in:
aliounedia 2014-09-25 11:10:07 +02:00
parent fffccef123
commit 2d709cbc39
2 changed files with 7 additions and 3 deletions

View File

@ -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;

View File

@ -212,3 +212,6 @@ section {
margin-bottom: 20px;
}
#my-online-csv {
height: 100px;
}