How to use the devextreme/events.off function in devextreme

To help you get started, we’ve selected a few devextreme 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 DevExpress / devextreme-react / src / core / template-wrapper.ts View on Github external
private _subscribeOnElementRemoval(element: Element): void {
        events.off(element, DX_REMOVE_EVENT, this._onDxRemove);
        events.one(element, DX_REMOVE_EVENT, this._onDxRemove);
    }
github DevExpress / devextreme-cli / templates / react / application / src / components / side-navigation-menu / side-navigation-menu.js View on Github external
getElementRef = ref => {
    if (this.elementRef) {
      events.off(this.elementRef, 'dxclick');
    }

    this.elementRef = ref;
    events.on(this.elementRef, 'dxclick', e => {
      this.props.openMenu(e);
    });
  };