@@ -14,35 +14,47 @@ export interface IPivotDimensionStrategy {
1414export type PivotAggregation = ( members : any [ ] , data : any [ ] ) => any ;
1515
1616export interface IPivotAggregator {
17- // Aggregation unique key.
17+ /** Aggregation unique key. */
1818 key : string ;
19- // Aggregation label to show in the UI.
19+ /** Aggregation label to show in the UI. */
2020 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+ */
2325 aggregator : ( members : any [ ] , data ?: any [ ] ) => any ;
2426}
2527
28+ /**
29+ * Configuration of the pivot grid.
30+ */
2631export interface IPivotConfiguration {
32+ /** A strategy to transform the rows. */
2733 rowStrategy ?: IPivotDimensionStrategy | null ;
34+ /** A strategy to transform the columns. */
2835 columnStrategy ?: IPivotDimensionStrategy | null ;
36+ /** A list of the rows. */
2937 rows : IPivotDimension [ ] | null ;
38+ /** A list of the columns. */
3039 columns : IPivotDimension [ ] | null ;
40+ /** A list of the values. */
3141 values : IPivotValue [ ] | null ;
32- // dimensions to be displayed in the filter area.
42+ /** Dimensions to be displayed in the filter area. */
3343 filters ?: IPivotDimension [ ] | null ;
3444}
3545
3646export 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. */
3848 childLevel ?: IPivotDimension ;
39- // field name which to use to extract value
49+ /** Field name to use in order to extract value. */
4050 memberName : string ;
41- // function that extract the value
51+ /** Function that extracts the value */
4252 memberFunction ?: ( data : any ) => any ;
43- // Enables/Disables a particular dimension from pivot structure.
53+ /** Enables/Disables a particular dimension from pivot structure. */
4454 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+ * */
4658 filter ?: FilteringExpressionsTree | null ;
4759 sortDirection ?: SortingDirection ;
4860 dataType ?: GridColumnDataType ;
0 commit comments