ViewSelector Class @beta
View Selector React component
Extends
- React.Component<ViewSelectorProps, ViewSelectorState>
Methods
| Name | Description | |
|---|---|---|
| constructor(props: ViewSelectorProps): ViewSelector | Creates a ViewSelector | |
| componentDidMount(): Promise<void> | Called immediately after a component is mounted. | |
| componentWillUnmount(): void | Called immediately before a component is destroyed. | |
| loadViews(): Promise<void> | Query the views and set the initial state with the iModel's views. | |
| render(): React.JSX.Element | Renders ViewSelector component | |
| updateState(viewId?: any): Promise<void> | Update state of the entries in the widget. | |
| updateShowSettings(showSpatials: boolean, showDrawings: boolean, showSheets: boolean, showUnknown: boolean): void Static | Updates the ViewSelector show settings. | 
Properties
| Name | Type | Description | |
|---|---|---|---|
| defaultProps Static Readonly | ViewSelectorDefaultProps | ||
| onViewSelectorChangedEvent Static Readonly | ViewSelectorChangedEvent | Gets the ViewSelectorChangedEvent. | Deprecated | 
Defined in
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.