[Tree] Display selection state

This commit is contained in:
Victor Woeltjen
2016-03-11 17:26:00 -08:00
parent 82b6166408
commit 217e697079
3 changed files with 13 additions and 2 deletions

View File

@ -76,6 +76,16 @@ define([
}
};
function getIdPath(domainObject) {
function getId(domainObject) {
return domainObject.getId();
}
return domainObject ?
domainObject.getCapability('context').getPath().map(getId) :
[];
}
TreeNodeView.prototype.value = function (domainObject) {
var activeIdPath = getIdPath(this.activeObject),
selectedIdPath = getIdPath(domainObject);