-
Notifications
You must be signed in to change notification settings - Fork 0
/
Types.ts
45 lines (41 loc) · 1.24 KB
/
Types.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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module Table
*/
import { PropertyRecord } from "@itwin/appui-abstract";
import { Field } from "@itwin/presentation-common";
/**
* Data structure that defines table column.
* @beta
*/
export interface TableColumnDefinition {
/** Unique column name. */
name: string;
/** Column display label. */
label: string;
/** [Field]($presentation-common) that this column is based on. */
field: Field;
}
/**
* Data structure that defined table row.
* @beta
*/
export interface TableRowDefinition {
/** Unique row key. */
key: string;
/** List of cells in this row. */
cells: TableCellDefinition[];
}
/**
* Data structure that defined table cell.
* @beta
*/
export interface TableCellDefinition {
/** Unique key that matches [[TableColumnDefinition]] name. */
key: string;
/** Record containing property definition and value of this cell. */
record: PropertyRecord;
}