How to use the @bentley/presentation-frontend.SelectionChangeType.Clear function in @bentley/presentation-frontend

To help you get started, we’ve selected a few @bentley/presentation-frontend 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 imodeljs / imodeljs / presentation / components / src / tree / controlled / UseUnifiedSelection.ts View on Github external
private onSelect(evt: SelectionChangeEventArgs) {
    if (evt.source === this._selectionHandler.name)
      return;

    if (evt.changeType === SelectionChangeType.Clear || evt.changeType === SelectionChangeType.Replace)
      this.cancelOngoingSubscriptions();

    this.selectNodes();
  }