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