Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/webroot/rsrc/js/application/projects/WorkboardHeader.js
12242 views
1
/**
2
* @provides javelin-workboard-header
3
* @requires javelin-install
4
* @javelin
5
*/
6
7
JX.install('WorkboardHeader', {
8
9
construct: function(column, header_key) {
10
this._column = column;
11
this._headerKey = header_key;
12
},
13
14
members: {
15
_root: null,
16
_column: null,
17
_headerKey: null,
18
19
getColumn: function() {
20
return this._column;
21
},
22
23
getHeaderKey: function() {
24
return this._headerKey;
25
},
26
27
getNode: function() {
28
if (!this._root) {
29
var header_key = this.getHeaderKey();
30
31
var root = this.getColumn().getBoard()
32
.getHeaderTemplate(header_key)
33
.newNode();
34
35
JX.Stratcom.getData(root).headerKey = header_key;
36
37
this._root = root;
38
}
39
40
return this._root;
41
},
42
43
isWorkboardHeader: function() {
44
return true;
45
}
46
}
47
48
});
49
50