1 export enum CellTemplate {
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:
12 // cellTransformation: CellTemplate.executing,
13 // customTemplateConfig: {
14 // valueClass?: string; // Cell value classes.
15 // executingClass?: string; // Executing state classes.
17 executing = 'executing',
18 classAdding = 'classAdding',
19 // Display the cell value as a badge. The template
20 // supports an optional custom configuration:
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.
29 // [key: any]: { value: any, class?: string }
34 // Maps the value using the given dictionary.
37 // cellTransformation: CellTemplate.map,
38 // customTemplateConfig: {
43 // Truncates string if it's longer than the given maximum
47 // cellTransformation: CellTemplate.truncate,
48 // customTemplateConfig: {
49 // length?: number; // Defaults to 30.
50 // omission?: string; // Defaults to empty string.
53 truncate = 'truncate',
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