Auto-populate groups based on highlighted entries

This commit is contained in:
Ian Gulliver
2019-07-11 04:25:06 +00:00
parent b6c8441f61
commit 057856a2d2
5 changed files with 39 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
class EditorNode extends EditorEntryBase {
constructor() {
constructor(label) {
super();
this.elem_.classList.add('node');
@@ -10,6 +10,10 @@ class EditorNode extends EditorEntryBase {
this.listen(this.input_, 'keydown', (e) => this.onInputKeyDown(e));
this.listen(this.input_, 'input', (e) => this.onInput());
this.elem_.appendChild(this.input_);
if (label) {
this.setLabel(label);
}
}
afterDomAdd() {