[#42,docs][s]: add docco build of view docs (plus tweak to view Docs).

This commit is contained in:
Rufus Pollock
2012-02-17 20:34:22 +00:00
parent a9cfd4412c
commit b285987ef4
2 changed files with 239 additions and 496 deletions

View File

@@ -17,34 +17,34 @@ this.recline.View = this.recline.View || {};
//
// ### Parameters
//
// **:param model:** (required) Dataset instance.
// **model**: (required) Dataset instance.
//
// **:param el:** (required) DOM element.
// **el**: (required) DOM element.
//
// **:param views:** (optional) the views (Grid, Graph etc) for DataExplorer to
// show. This is an array with the key used in routing. If not provided
// just initialize a DataTable with key 'grid'. Example:
// **views**: (optional) the views (Grid, Graph etc) for DataExplorer to
// show. This is an array of view hashes. If not provided
// just initialize a DataTable with id 'grid'. Example:
//
// <pre>
// var views = [
// {
// id: 'grid',
// label: 'Grid',
// view: new recline.View.DataTable({
// model: dataset
// })
// },
// {
// id: 'graph',
// label: 'Graph',
// view: new recline.View.FlotGraph({
// model: dataset
// })
// }
// ];
// var views = [
// {
// id: 'grid', // used for routing
// label: 'Grid', // used for view switcher
// view: new recline.View.DataTable({
// model: dataset
// })
// },
// {
// id: 'graph',
// label: 'Graph',
// view: new recline.View.FlotGraph({
// model: dataset
// })
// }
// ];
// </pre>
//
// **:param config:** Config options like:
// **config**: Config options like:
//
// * displayCount: how many documents to display initially (default: 10)
// * readOnly: true/false (default: false) value indicating whether to