-
Notifications
You must be signed in to change notification settings - Fork 2
/
MutableCategorizedPrimitiveProperty.ts
50 lines (46 loc) · 1.4 KB
/
MutableCategorizedPrimitiveProperty.ts
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module PropertyGrid
*/
import type { PropertyRecord } from "@itwin/appui-abstract";
import type { IMutableCategorizedPropertyItem } from "./MutableFlatGridItem";
import {
FlatGridItemType,
MutableCategorizedProperty,
} from "./MutableFlatGridItem";
/**
* Mutable wrapper object for PropertyRecord with primitive valueFormat.
* @public
*/
export class MutableCategorizedPrimitiveProperty
extends MutableCategorizedProperty
implements IMutableCategorizedPropertyItem
{
public constructor(
record: PropertyRecord,
parentSelectionKey: string,
parentCategorySelectionKey: string,
depth: number,
overrideName?: string,
overrideDisplayLabel?: string
) {
super(
FlatGridItemType.Primitive,
record,
parentSelectionKey,
parentCategorySelectionKey,
depth,
overrideName,
overrideDisplayLabel
);
}
public get type(): FlatGridItemType.Primitive {
return FlatGridItemType.Primitive;
}
public getChildren(): IMutableCategorizedPropertyItem[] {
return [];
}
}