diff --git a/docs/tutorial-views.markdown b/docs/tutorial-views.markdown index de0bcae4..b1dba993 100644 --- a/docs/tutorial-views.markdown +++ b/docs/tutorial-views.markdown @@ -28,10 +28,13 @@ Before writing any code with Recline, you need to do the following preparation s 3. Include the relevant Javascript files somewhere on the page (preferably before body close tag): {% highlight html %} - - - + + + + + + - - - + + + + + diff --git a/src/view.multiview.js b/src/view.multiview.js index 6d7e754a..b0e2480f 100644 --- a/src/view.multiview.js +++ b/src/view.multiview.js @@ -11,7 +11,7 @@ this.recline.View = this.recline.View || {}; // Manage multiple views together along with query editor etc. Usage: // //
-// var myExplorer = new model.recline.MultiView({
+// var myExplorer = new recline.View.MultiView({
// model: {{recline.Model.Dataset instance}}
// el: {{an existing dom element}}
// views: {{dataset views}}
@@ -61,7 +61,7 @@ this.recline.View = this.recline.View || {};
// {
// id: 'filterEditor', // used for routing
// label: 'Filters', // used for view switcher
-// view: new recline.View.FielterEditor({
+// view: new recline.View.FilterEditor({
// model: dataset
// })
// },
@@ -79,10 +79,10 @@ this.recline.View = this.recline.View || {};
// special as it includes config of many of the subviews.
//
//
-// state = {
+// var state = {
// query: {dataset query state - see dataset.queryState object}
-// view-{id1}: {view-state for this view}
-// view-{id2}: {view-state for }
+// 'view-{id1}': {view-state for this view}
+// 'view-{id2}': {view-state for }
// ...
// // Explorer
// currentView: id of current view (defaults to first view if not specified)