Skip to content

Commit

Permalink
docu
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Feb 17, 2019
1 parent 77c3da5 commit d887182
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/builder/DataBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,25 @@ export default class DataBuilder extends LineUpBuilder {
super();
}

/**
* use the schedulded task executor to asynchronously compute aggregations
*/
scheduledTaskExecutor() {
this.providerOptions.taskExecutor = 'scheduled';
return this;
}

/**
* when using a top-n strategy how many items should be shown
*/
showTopN(n: number) {
this.providerOptions.showTopN = n;
return this;
}

/**
* change the aggregation strategy that should be used when grouping by a column
*/
aggregationStrategy(strategy: IAggregationStrategy) {
this.providerOptions.aggregationStrategy = strategy;
return this;
Expand Down

0 comments on commit d887182

Please sign in to comment.