How to use the @bentley/presentation-components.PresentationPropertyDataProvider function in @bentley/presentation-components

To help you get started, we’ve selected a few @bentley/presentation-components 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 / test-apps / ui-test-app / src / frontend / appui / widgets / UnifiedSelectionPropertyGridWidget.tsx View on Github external
function createDataProvider(imodel: IModelConnection, rulesetId: string): PresentationPropertyDataProvider {
  return new PresentationPropertyDataProvider(imodel, rulesetId);
}
github imodeljs / simple-viewer-app / src / frontend / components / Properties.tsx View on Github external
private getDataProvider(props: Props) {
    if ((props as any).dataProvider) {
      const providerProps = props as DataProviderProps;
      return providerProps.dataProvider;
    } else {
      const imodelProps = props as IModelConnectionProps;
      return new PresentationPropertyDataProvider(imodelProps.imodel, imodelProps.rulesetId);
    }
  }