-
Notifications
You must be signed in to change notification settings - Fork 2
/
GroupItemProps.ts
25 lines (23 loc) · 1.05 KB
/
GroupItemProps.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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module Item
*/
import type { StringGetter } from "@itwin/appui-abstract";
import type { AnyItemDef } from "./AnyItemDef";
import type { ItemProps } from "./ItemProps";
/** Definition for a Group item that opens a group of items.
* @public
*/
export interface GroupItemProps extends ItemProps {
defaultActiveItemId?: string;
groupId?: string;
items: AnyItemDef[];
itemsInColumn?: number;
/** if set, it is used to explicitly set a label at top of open group component. */
panelLabel?: string | StringGetter;
/** if set, it is used to define a key that is used to look up a localized string. This value is used only if panelLabel is not explicitly set. */
panelLabelKey?: string;
}