How to use the aurelia-framework.DOM.removeNode function in aurelia-framework

To help you get started, we’ve selected a few aurelia-framework examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adarshpastakia / aurelia-ui-framework / src / elements / core / ui-viewport.ts View on Github external
attached() {
    UIUtils.dialogContainer = this.dialogContainer;
    UIUtils.overlayContainer = this.overlayContainer;
    UIUtils.taskbarContainer = this.taskbarContainer;

    // Add browserAgent class to html element
    document.documentElement.classList.add(window.browserAgent());

    // Fire appready event
    UIEvent.fireEvent('appready', this.element);

    // Remove splash
    if (document.querySelector('.ui-splash')) DOM.removeNode(document.querySelector('.ui-splash'));
  }
  // detached() { }
github adarshpastakia / aurelia-ui-framework / dist / es2017 / ui-tether.js View on Github external
dispose: () => {
                scroller.scrollCallbacks.delete(scrollCallback);
                if (dropdownEl.parentElement === Container.instance.get(UIAppConfig).FloatingContainer) {
                    DOM.removeNode(dropdownEl);
                }
                else {
                    DOM.removeNode(dropdownEl.parentElement);
                }
            },
            updatePosition: (newAnchorEl, newConfig = {}) => {
github adarshpastakia / aurelia-ui-framework / src / buttons / ui-tag.ts View on Github external
    UIInternal.queueTask(() => DOM.removeNode(this.vmElement));
  }
github adarshpastakia / aurelia-ui-framework / src / resources / elements / components / ui-panel.ts View on Github external
close() {
    if (isFunction(this.beforeclose)) {
      let ret = this.beforeclose();
      if (ret instanceof Promise) ret.then(b => {
        if (b) {
          DOM.removeNode(this.element);
        }
      });
      else if (ret !== false) {
        DOM.removeNode(this.element);
      }
    }
    else if (UIEvent.fireEvent('beforeclose', this.element) !== false) {
      DOM.removeNode(this.element);
    }
  }
  collapse() {
github adarshpastakia / aurelia-ui-framework / src / elements / components / ui-panel.ts View on Github external
remove() {
    DOM.removeNode(this.element);
    UIEvent.fireEvent('close', this.element)
  }
  collapse() {
github adarshpastakia / aurelia-ui-framework / src / utils / ui-dialog.ts View on Github external
.then(canDeactivate => {
        if (force || canDeactivate !== false) {
          UIUtils.getDialogContainerSlot().remove(dialog['__view']);

          dialog['__controller'].detached();
          dialog['__controller'].unbind();

          _.remove(this.windows, ['uniqId', dialog.uniqId]);
          if (!dialog.modal) {
            DOM.removeNode(dialog.taskButtonEl);
            this.nextActive();
          }

          dialog.deactivate();
        }
      });
  }
github adarshpastakia / aurelia-ui-framework / dist / es2017 / ui-tab-panel.js View on Github external
            UIInternal.queueTask(() => DOM.removeNode(tab.element));
        }
github sigmaframeworks / sigma-ui-framework / src / resources / elements / components / ui-menu.ts View on Github external
detached() {
    this.__tether.destroy();
    this.__obClick.dispose();
    this.__obResize.dispose();
    DOM.removeNode(this.__overflow);
  }
github adarshpastakia / aurelia-ui-framework / src / resources / elements / components / ui-alerts.ts View on Github external
setTimeout(() => {
      if (this.closeCallback) this.closeCallback(b ? this.value : null);
      DOM.removeNode(this.element);
    }, 100);
  }
github adarshpastakia / aurelia-ui-framework / dist / native-modules / ui-tether.js View on Github external
dispose: function () {
                scroller.scrollCallbacks.delete(scrollCallback);
                if (dropdownEl.parentElement === Container.instance.get(UIAppConfig).FloatingContainer) {
                    DOM.removeNode(dropdownEl);
                }
                else {
                    DOM.removeNode(dropdownEl.parentElement);
                }
            },
            updatePosition: function (newAnchorEl, newConfig) {