How to use the @bentley/presentation-frontend.SelectionHelper.getKeysForSelection 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
protected getKeys(nodes: TreeNodeItem[]): Keys {
    const nodeKeys: NodeKey[] = nodes.map((node) => this._dataProvider.getNodeKey(node));
    return SelectionHelper.getKeysForSelection(nodeKeys);
  }
github imodeljs / imodeljs / presentation / components / src / tree / WithUnifiedSelection.tsx View on Github external
private getKeys(nodes: TreeNodeItem[]): Keys {
      const nodeKeys: NodeKey[] = nodes.map((node) => this.props.dataProvider.getNodeKey(node));
      return SelectionHelper.getKeysForSelection(nodeKeys);
    }