okfn/recline — Issue #51: Super simple example: local data with no explicit backend
Author: rgrp
Created: 2012-02-22 20:47:51+00:00
State: open

For docs and general use should be able to use Recline without having to create a backend (explicilty).

Want to do something like:

var data = [
{ 'col1: 'a', 'col2': 'b' }
{ 'col2': 'x', 'col2': 'c' }
];
var dataset = new Dataset({id: 1, title: 'abc'}, data)
var explorer = new DataExplorer(dataset);

May compromise by having a simple function:

var dataset = createDataset(metadata, data);
var explorer = new DataExplorer(dataset);

(Natural way would be to do sort etc on currentDocuments. However, given structure we have we may as well use BackendMemory behind the scenes -- o/w we duplicate e.g. sorting code and mess up separation between backend, local data and views).