Skip to content

Commit

Permalink
feat: add method `method public void setColumnAggFunc(BBjString field…
Browse files Browse the repository at this point in the history
…! , BBjString AggFunc!)`
  • Loading branch information
hyyan committed Jul 2, 2019
1 parent 88771d1 commit d5802ef
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions BBjGridExWidget.bbj
Expand Up @@ -1295,6 +1295,17 @@ class public BBjGridExWidget extends BBjWidget implements BBjGridExWidgetColumns
FI
methodend
rem /**
rem * Set an aggregation function for the passed column field
rem *
rem * @param BBjString field! The column's field
rem * @param BBjString AggFunc! Name of function to use for aggregation. One of [sum,min,max,first,last].
rem */
method public void setColumnAggFunc(BBjString field! , BBjString AggFunc!)
if(#hasColumn(field!)) then
#getColumn(field!).setAggFunc(AggFunc!)
FI
methodend
rem /**
rem * Enable row grouping for columns.<br>
rem *
rem * <b>Note</b> This method can update row grouping for columns after/before the grid is rendered
Expand Down

0 comments on commit d5802ef

Please sign in to comment.