forked from fuse-open/fuse-samples
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainView.js
47 lines (43 loc) · 942 Bytes
/
MainView.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
exports.goBack = function() {
router.goBack()
}
exports.goBottomRight = function() {
router.push( "BottomRight" )
}
exports.goTopLeft = function() {
router.push( "TopLeft" )
}
exports.goPopup = function() {
router.push( "Popup" )
}
exports.goPopupBottom = function() {
router.push( "PopupBottom" )
}
var count = 0
/** Creates a unique Parameter for some pages */
function createProp() {
return {
id: "#" + (++count)
}
}
exports.goRight1 = function() {
router.push( "Right1", createProp() )
}
exports.goRight2 = function() {
router.push( "Right2", createProp() )
}
exports.goLeft = function() {
router.push( "Left", createProp() )
}
exports.goTop = function() {
router.push( "Top", createProp() )
}
exports.goBottom = function() {
router.push( "Bottom", createProp() )
}
exports.goPopupTop = function() {
router.push( "PopupTop", createProp() )
}
exports.goSlideTop = function() {
router.push( "SlideTop", createProp() )
}