update
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: '"',
|
||||||
@@ -14,7 +14,8 @@ 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,
|
||||||
|
el: $('#my-online-csv')
|
||||||
});
|
});
|
||||||
$('#my-online-csv').append(grid.el);
|
grid.visible = true;
|
||||||
|
|
||||||
|
|||||||
@@ -212,3 +212,6 @@ section {
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#my-online-csv {
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user