Path: blob/master/webroot/rsrc/js/application/projects/WorkboardCardTemplate.js
12242 views
/**1* @provides javelin-workboard-card-template2* @requires javelin-install3* @javelin4*/56JX.install('WorkboardCardTemplate', {78construct: function(phid) {9this._phid = phid;10this._vectors = {};11this._headerKeys = {};1213this.setObjectProperties({});14},1516properties: {17objectProperties: null18},1920members: {21_phid: null,22_html: null,23_vectors: null,24_headerKeys: null,2526getPHID: function() {27return this._phid;28},2930getVersion: function() {31// TODO: For now, just return a constant version number.32return 1;33},3435setNodeHTMLTemplate: function(html) {36this._html = html;37return this;38},3940setSortVector: function(order, vector) {41this._vectors[order] = vector;42return this;43},4445getSortVector: function(order) {46return this._vectors[order];47},4849setHeaderKey: function(order, key) {50this._headerKeys[order] = key;51return this;52},5354getHeaderKey: function(order) {55return this._headerKeys[order];56},5758newNode: function() {59return JX.$H(this._html).getFragment().firstChild;60},6162setObjectProperty: function(key, value) {63this.getObjectProperties()[key] = value;64return this;65}66}6768});697071