]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/enum/cell-template.enum.ts
066cc9930adce977811161e45d708f33c84bad14
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / enum / cell-template.enum.ts
1 export enum CellTemplate {
2 bold = 'bold',
3 sparkline = 'sparkline',
4 perSecond = 'perSecond',
5 checkIcon = 'checkIcon',
6 routerLink = 'routerLink',
7 // Display the cell with an executing state. The state can be set to the `cdExecuting`
8 // attribute of table rows.
9 // It supports an optional custom configuration:
10 // {
11 // ...
12 // cellTransformation: CellTemplate.executing,
13 // customTemplateConfig: {
14 // valueClass?: string; // Cell value classes.
15 // executingClass?: string; // Executing state classes.
16 // }
17 executing = 'executing',
18 classAdding = 'classAdding',
19 // Display the cell value as a badge. The template
20 // supports an optional custom configuration:
21 // {
22 // ...
23 // cellTransformation: CellTemplate.badge,
24 // customTemplateConfig: {
25 // class?: string; // Additional class name.
26 // prefix?: any; // Prefix of the value to be displayed.
27 // // 'map' and 'prefix' exclude each other.
28 // map?: {
29 // [key: any]: { value: any, class?: string }
30 // }
31 // }
32 // }
33 badge = 'badge',
34 // Maps the value using the given dictionary.
35 // {
36 // ...
37 // cellTransformation: CellTemplate.map,
38 // customTemplateConfig: {
39 // [key: any]: any
40 // }
41 // }
42 map = 'map',
43 // Truncates string if it's longer than the given maximum
44 // string length.
45 // {
46 // ...
47 // cellTransformation: CellTemplate.truncate,
48 // customTemplateConfig: {
49 // length?: number; // Defaults to 30.
50 // omission?: string; // Defaults to empty string.
51 // }
52 // }
53 truncate = 'truncate',
54 /*
55 This templace replaces a time, datetime or timestamp with a user-friendly "X {seconds,minutes,hours,days,...} ago",
56 but the tooltip still displays the absolute timestamp
57 */
58 timeAgo = 'timeAgo'
59 }