Closed SaiFi0102 closed 5 years ago
Added the option to add an event "accumulator" which will be used to calculate the totals row. See the referenced PR for frappe for screenshots.
DataTable looks for hooks.totalAccumulator. If it finds the function, it will call it otherwise it will use it's default accumulator logic.
hooks.totalAccumulator
If the accumulator event function returns a false, the DataTable's default accumulator logic will be used.
false
:tada: This PR is included in version 1.9.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Added the option to add an event "accumulator" which will be used to calculate the totals row. See the referenced PR for frappe for screenshots.
DataTable looks for
hooks.totalAccumulator
. If it finds the function, it will call it otherwise it will use it's default accumulator logic.If the accumulator event function returns a
false
, the DataTable's default accumulator logic will be used.