-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathview.js
41 lines (35 loc) · 1.15 KB
/
view.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
define(function(require, exports, modules) {
var View = function() {};
(function() {
this.init = function() {
this.initViewMenu();
};
this.initViewMenu = function() {
mnuView.appendChild(new apf.item({
caption : "Pdf View",
submenu : "mnuPdfView"
}));
apf.document.body.appendChild(new apf.menu({
id : "mnuPdfView"
}));
var self = this;
mnuPdfView.appendChild(this.itmSideBySide = new apf.item({
caption : "Side by side",
type : "radio",
onclick : function() {
self.$showPdfSideBySide();
}
}));
mnuPdfView.appendChild(this.itmSinglePane = new apf.item({
caption : "Tabbed",
type : "radio",
onclick : function() {
self.$showPdfTabbed();
}
}));
};
this.$showPdfSideBySide = function() {};
this.$showPdfTabbed = function() {};
}).call(View.prototype);
return View;
})