Debian Codegraph @

dojox/app/tests/mediaQuery3ColumnApp/views/nav/navigation.js

raw symbols SCIP
1 define(["dojo/dom-class"],
2 function(domClass){
3 return {
4 // view init
5 init: function(){
6 console.log("in init for view with this.name = "+this.name);
7
8 // the back button is never shown for Nav
9 domClass.add(this.navheaderBackButton.domNode, "hide");
10
11 // This code will setup the view to work in the left or center depending upon the view name
12 if(this.name == "navLeft"){
13 this.navOuterContainer["data-app-constraint"] = "left";
14 domClass.add(this.navOuterDiv, "hideOnSmall"); // for navigation on the left
15 }else{
16 this.navOuterContainer["data-app-constraint"] = "center";
17 domClass.add(this.navOuterContainer, "center");
18 }
19
20 },
21
22 beforeActivate: function(previousView){
23 // summary:
24 // view life cycle beforeActivate()
25 //
26 this.previousView = previousView;
27
28 },
29
30 beforeDeactivate: function(){
31 // summary:
32 // view life cycle beforeActivate()
33 //
34 },
35
36 testOption1Clicked: function(/*Event*/ e){
37 e.transitionNext = e.target.parentElement.id;
38 this.app.emit("MQ3ColApp/TestOption1", e);
39 },
40
41 mainOption1Clicked: function(/*Event*/ e){
42 this.app.emit("MQ3ColApp/MainOption1", e);
43 },
44
45 mainOption2Clicked: function(/*Event*/ e){
46 this.app.emit("MQ3ColApp/MainOption2", e);
47 },
48
49 mainOption3Clicked: function(/*Event*/ e){
50 this.app.emit("MQ3ColApp/MainOption3", e);
51 }
52
53 }
54 });