forked from imodeljs/imodeljs-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TreeWidget.tsx
23 lines (19 loc) · 903 Bytes
/
TreeWidget.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import * as React from "react";
import {
WidgetControl,
ConfigurableCreateInfo,
} from "@bentley/ui-framework";
import SimpleTreeComponent from "../../components/Tree";
/** A widget control for displaying the Tree React component */
export class TreeWidget extends WidgetControl {
constructor(info: ConfigurableCreateInfo, options: any) {
super(info, options);
if (options.iModelConnection) {
this.reactElement = <SimpleTreeComponent imodel={options.iModelConnection} rulesetId={options.rulesetId} />;
}
}
}