1.4.6 • Published 2 years ago

@bentley/tree-widget-react v1.4.6

Weekly downloads
102
License
MIT
Repository
github
Last release
2 years ago

@bentley/tree-widget-react

Copyright © Bentley Systems, Incorporated. All rights reserved.

The tree-widget-react package provides a UiProvider class - TreeWidgetUiItemsProvider - which can be passed into the uiProviders prop of the iTwin Viewer's <Viewer /> component to provide access to the following features:

  • Spatial Containment Tree

  • Models Tree

  • Categories Tree

The package also provides the underlying component - TreeWidgetComponent - which you can wrap within your own custom UiProvider and pass in your own custom trees to display.

Sample usage

Initializing TreeWidget before using the TreeWidgetUiItemsProvider is required

const handleOnIModelAppInit = async () => {
    await TreeWidget.initialize(IModelApp.i18n);
  };

<Viewer
  ...
  onIModelAppInit={handleOnIModelAppInit}
  uiProviders={[new TreeWidgetUiItemsProvider(props)]}
/>
1.4.6

2 years ago

1.4.5

2 years ago

1.4.4

3 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago