Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Add a header with total of selected columns #840

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

philippemilink
Copy link
Contributor

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.

@stephanvierkant
Copy link
Collaborator

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

@philippemilink
Copy link
Contributor Author

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.

@stephanvierkant
Copy link
Collaborator

Thanks! I will look into this asap!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants