mirror of
https://we.phorge.it/source/phorge.git
synced 2024-10-24 01:28:52 +02:00
48 lines
792 B
JavaScript
48 lines
792 B
JavaScript
|
/**
|
||
|
* @provides javelin-workboard-card-template
|
||
|
* @requires javelin-install
|
||
|
* @javelin
|
||
|
*/
|
||
|
|
||
|
JX.install('WorkboardCardTemplate', {
|
||
|
|
||
|
construct: function(phid) {
|
||
|
this._phid = phid;
|
||
|
this._vectors = {};
|
||
|
|
||
|
this.setObjectProperties({});
|
||
|
},
|
||
|
|
||
|
properties: {
|
||
|
objectProperties: null
|
||
|
},
|
||
|
|
||
|
members: {
|
||
|
_phid: null,
|
||
|
_vectors: null,
|
||
|
|
||
|
getPHID: function() {
|
||
|
return this._phid;
|
||
|
},
|
||
|
|
||
|
setNodeHTMLTemplate: function(html) {
|
||
|
this._html = html;
|
||
|
return this;
|
||
|
},
|
||
|
|
||
|
setSortVector: function(order, vector) {
|
||
|
this._vectors[order] = vector;
|
||
|
return this;
|
||
|
},
|
||
|
|
||
|
getSortVector: function(order) {
|
||
|
return this._vectors[order];
|
||
|
},
|
||
|
|
||
|
newNode: function() {
|
||
|
return JX.$H(this._html).getFragment().firstChild;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
});
|