kvision icon indicating copy to clipboard operation
kvision copied to clipboard

How to add more than one bottomCalc rows?

Open chavu opened this issue 1 year ago • 2 comments

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

chavu avatar May 16 '24 08:05 chavu

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

rjaros avatar May 16 '24 09:05 rjaros

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

chavu avatar May 16 '24 09:05 chavu