-
Notifications
You must be signed in to change notification settings - Fork 2
/
StatusBarWidgetControl.tsx
33 lines (28 loc) · 1.23 KB
/
StatusBarWidgetControl.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module StatusBar
*/
import type { ConfigurableCreateInfo } from "../configurableui/ConfigurableUiControl";
import { ConfigurableUiControlType } from "../configurableui/ConfigurableUiControl";
import { WidgetControl } from "../widgets/WidgetControl";
/** Status Bar Field type.
* @public
*/
export type StatusBarFieldId = string | null;
/** Status Bar Widget Control.
* @public
*/
export abstract class StatusBarWidgetControl extends WidgetControl {
constructor(info: ConfigurableCreateInfo, options: any) {
super(info, options);
}
/** Gets the React node associated with this StatusBar Widget Control */
public abstract getReactNode(): React.ReactNode;
/** Gets the type of ConfigurableUiControl, which is 'StatusBarWidget' in this case */
public override getType(): ConfigurableUiControlType {
return ConfigurableUiControlType.StatusBarWidget;
}
}