[#42,view][m]: allow configuring of DataExplorer with views to show.

* TODO: Some issues regarding configuring the FlotGraph from query string
This commit is contained in:
Rufus Pollock
2012-02-17 20:30:26 +00:00
parent 23e46e9c6f
commit a9cfd4412c
2 changed files with 86 additions and 46 deletions

View File

@@ -2,9 +2,26 @@ $(function() {
var $el = $('<div />');
$el.appendTo($('.data-explorer-here'));
var dataset = demoDataset();
var views = [
{
id: 'grid',
label: 'Grid',
view: new recline.View.DataTable({
model: dataset
})
},
{
id: 'graph',
label: 'Graph',
view: new recline.View.FlotGraph({
model: dataset
})
}
];
window.dataExplorer = new recline.View.DataExplorer({
el: $el
, model: dataset
, views: views
});
Backbone.history.start();
setupLoadFromWebstore(function(dataset) {