Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add more than one bottomCalc rows? #526

Open
chavu opened this issue May 16, 2024 · 2 comments
Open

How to add more than one bottomCalc rows? #526

chavu opened this issue May 16, 2024 · 2 comments

Comments

@chavu
Copy link

chavu commented May 16, 2024

Refer to the embedded image. I have successfully added the 'Totals' row using the tabulator code below. How do I add the 'Percentage of Total' Row

tabulator(
                                testingState.tableTestCaseAnalysis,
                                options = TabulatorOptions(
                                    layout = Layout.FITCOLUMNS,
                                    pagination = false,
                                    paginationSize = 4,
                                    columns = listOf(
                                        ColumnDefinition("Code", "code"),
                                        ColumnDefinition("Name", "name"),
                                        ColumnDefinition("Tests", "testsCount", bottomCalc = Calc.SUM),
                                        ColumnDefinition("Skipped", "skippedCount", bottomCalc = Calc.SUM),
                                        ColumnDefinition("Failed", "failedCount", bottomCalc = Calc.SUM),
                                        ColumnDefinition("Passed", "passedCount", bottomCalc = Calc.SUM),
                                        ColumnDefinition("Logged Issues", "issuesCount", bottomCalc = Calc.SUM),
                                    ),
                                    filterMode = FilterMode.LOCAL
                                ),
                                types = setOf(TableType.BORDERED, TableType.HOVER, TableType.STRIPED),
                                serializer = serializer()
                            )

image

@rjaros
Copy link
Owner

rjaros commented May 16, 2024

I don't think this is supported by Tabulator.
There is an issue with suggested feature (olifolkerd/tabulator#4003), but it doesn't seem to be implemented.

@chavu
Copy link
Author

chavu commented May 16, 2024

Noted. Thank you. I will keep an ey on the feature request.

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

No branches or pull requests

2 participants