How to use the @bentley/presentation-frontend.SelectionChangeType.Replace 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
next: ({ selectedNodeItems }) => {
        if (firstEmission) {
          firstEmission = false;
          this._selectionHandler.replaceSelection(this.createKeysForSelection(selectedNodeItems, SelectionChangeType.Replace));
          return;
        }
        this._selectionHandler.addToSelection(this.createKeysForSelection(selectedNodeItems, SelectionChangeType.Add));
      },
      complete: () => {