Auto-populate groups based on highlighted entries
This commit is contained in:
14
List.js
14
List.js
@@ -14,6 +14,20 @@ class List {
|
||||
return ret;
|
||||
}
|
||||
|
||||
queryEntries(query, type) {
|
||||
let ret = [];
|
||||
for (let elem of this.container_.querySelectorAll(query)) {
|
||||
if (!elem.xArchObj) {
|
||||
continue;
|
||||
}
|
||||
if (type && !(elem.xArchObj instanceof type)) {
|
||||
continue;
|
||||
}
|
||||
ret.push(elem.xArchObj);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
getSelected() {
|
||||
let iter = document.activeElement;
|
||||
while (iter) {
|
||||
|
||||
Reference in New Issue
Block a user