Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/webroot/rsrc/js/phuix/PHUIXActionListView.js
12241 views
1
/**
2
* @provides phuix-action-list-view
3
* @requires javelin-install
4
* javelin-dom
5
*/
6
7
JX.install('PHUIXActionListView', {
8
9
construct: function() {
10
this._items = [];
11
},
12
13
members: {
14
_items: null,
15
_node: null,
16
17
addItem: function(item) {
18
this._items.push(item);
19
this.getNode().appendChild(item.getNode());
20
return this;
21
},
22
23
getNode: function() {
24
if (!this._node) {
25
var attrs = {
26
className: 'phabricator-action-list-view'
27
};
28
29
this._node = JX.$N('ul', attrs);
30
}
31
32
return this._node;
33
}
34
}
35
36
});
37
38