DatatablesBundle icon indicating copy to clipboard operation
DatatablesBundle copied to clipboard

Add a header with total of selected columns

Open philippemilink opened this issue 5 years ago • 3 comments

Hi, I added an option to compute the total of a column and display it in a row just under the header row.

Requires PR #836, #816, #837.

philippemilink avatar Oct 23 '18 16:10 philippemilink

@philippemilink Can you resolve the conflicts? I'd like to give it a try :)

stephanvierkant avatar Aug 26 '19 14:08 stephanvierkant

I just solved the conflicts, all needed PRs were merged.

I tested it with https://github.com/stwe/DtBundleDemo10, just add 'compute_total' => true in src/AppBundle/Datatables/PostDatatable.php:222. It will display the total of ratings of all posts; totally meaningless, but it is a total of integers ! 😄

While testing with demo app, I discovered a bug, fixed with PR #916.

philippemilink avatar Sep 07 '19 20:09 philippemilink

Thanks! I will look into this asap!

stephanvierkant avatar Sep 08 '19 08:09 stephanvierkant