@@ -14,35 +14,47 @@ export interface IPivotDimensionStrategy {
14
14
export type PivotAggregation = ( members : any [ ] , data : any [ ] ) => any ;
15
15
16
16
export interface IPivotAggregator {
17
- // Aggregation unique key.
17
+ /** Aggregation unique key. */
18
18
key : string ;
19
- // Aggregation label to show in the UI.
19
+ /** Aggregation label to show in the UI. */
20
20
label : string ;
21
- // Aggregator function can be a custom implementation of PivotAggregation or
22
- // use predefined ones from IgxPivotAggregate and its variants.
21
+ /**
22
+ * Aggregator function can be a custom implementation of `PivotAggregation`, or
23
+ * use predefined ones from `IgxPivotAggregate` and its variants.
24
+ */
23
25
aggregator : ( members : any [ ] , data ?: any [ ] ) => any ;
24
26
}
25
27
28
+ /**
29
+ * Configuration of the pivot grid.
30
+ */
26
31
export interface IPivotConfiguration {
32
+ /** A strategy to transform the rows. */
27
33
rowStrategy ?: IPivotDimensionStrategy | null ;
34
+ /** A strategy to transform the columns. */
28
35
columnStrategy ?: IPivotDimensionStrategy | null ;
36
+ /** A list of the rows. */
29
37
rows : IPivotDimension [ ] | null ;
38
+ /** A list of the columns. */
30
39
columns : IPivotDimension [ ] | null ;
40
+ /** A list of the values. */
31
41
values : IPivotValue [ ] | null ;
32
- // dimensions to be displayed in the filter area.
42
+ /** Dimensions to be displayed in the filter area. */
33
43
filters ?: IPivotDimension [ ] | null ;
34
44
}
35
45
36
46
export interface IPivotDimension {
37
- // allow defining a hierarchy when multiple sub groups need to be extracted from single member.
47
+ /** Allows defining a hierarchy when multiple sub groups need to be extracted from single member. */
38
48
childLevel ?: IPivotDimension ;
39
- // field name which to use to extract value
49
+ /** Field name to use in order to extract value. */
40
50
memberName : string ;
41
- // function that extract the value
51
+ /** Function that extracts the value */
42
52
memberFunction ?: ( data : any ) => any ;
43
- // Enables/Disables a particular dimension from pivot structure.
53
+ /** Enables/Disables a particular dimension from pivot structure. */
44
54
enabled : boolean ;
45
- // A predefined or defined via the `igxPivotSelector` filter expression tree for the current dimension to be applied in the filter pipe.
55
+ /**
56
+ * A predefined or defined via the `igxPivotSelector` filter expression tree for the current dimension to be applied in the filter pipe.
57
+ * */
46
58
filter ?: FilteringExpressionsTree | null ;
47
59
sortDirection ?: SortingDirection ;
48
60
dataType ?: GridColumnDataType ;
0 commit comments