在 vaadin 中添加摘要行 table
Add summary row in vaadin table
我想在 table 的末尾添加一个摘要行。我可以使用 com.vaadin.ui.Table 的标准函数吗?
Vaadin Table 知道页眉和页脚。
Here is the Documentation for it.
// Set the footers
table.setFooterVisible(true);
table.setColumnFooter("Name", "Average");
table.setColumnFooter("Died At Age", String.valueOf(avgAge));
生成页脚的内容是您的责任,因此您必须进行 sums/average 或其他计算。
我想在 table 的末尾添加一个摘要行。我可以使用 com.vaadin.ui.Table 的标准函数吗?
Vaadin Table 知道页眉和页脚。 Here is the Documentation for it.
// Set the footers
table.setFooterVisible(true);
table.setColumnFooter("Name", "Average");
table.setColumnFooter("Died At Age", String.valueOf(avgAge));
生成页脚的内容是您的责任,因此您必须进行 sums/average 或其他计算。