/
propertyitem.ts
75 lines (71 loc) · 1.74 KB
/
propertyitem.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import { registerEnum } from "./system";
export enum SummaryType {
Disabled = -1,
None = 0,
Sum = 1,
Avg = 2,
Min = 3,
Max = 4
}
registerEnum(SummaryType, 'Serenity.SummaryType');
export interface PropertyItem {
name?: string;
title?: string;
hint?: string;
placeholder?: string;
editorType?: string;
editorParams?: any;
category?: string;
collapsible?: boolean;
collapsed?: boolean;
tab?: string;
cssClass?: string;
headerCssClass?: string;
formCssClass?: string;
maxLength?: number;
required?: boolean;
insertable?: boolean;
insertPermission?: string;
hideOnInsert?: boolean;
updatable?: boolean;
updatePermission?: string;
hideOnUpdate?: boolean;
readOnly?: boolean;
readPermission?: string;
oneWay?: boolean;
defaultValue?: any;
localizable?: boolean;
visible?: boolean;
allowHide?: boolean;
formatterType?: string;
formatterParams?: any;
displayFormat?: string;
alignment?: string;
width?: number;
widthSet?: boolean;
minWidth?: number;
maxWidth?: number;
labelWidth?: string;
resizable?: boolean;
sortable?: boolean;
sortOrder?: number;
groupOrder?: number;
summaryType?: SummaryType;
editLink?: boolean;
editLinkItemType?: string;
editLinkIdField?: string;
editLinkCssClass?: string;
filteringType?: string;
filteringParams?: any;
filteringIdField?: string;
notFilterable?: boolean;
filterOnly?: boolean;
quickFilter?: boolean;
quickFilterParams?: any;
quickFilterSeparator?: boolean;
quickFilterCssClass?: string;
}
export interface PropertyItemsData {
items: PropertyItem[];
additionalItems: PropertyItem[];
}