[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/webroot/rsrc/js/phuix/ -> PHUIXActionListView.js (source)

   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  });


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1