update
This commit is contained in:
parent
fffccef123
commit
2d709cbc39
@ -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;
|
||||
|
||||
|
||||
@ -212,3 +212,6 @@ section {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
#my-online-csv {
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user