我已经从vaadin 7和vaadin 8网格实现了导出功能。现在我们迁移到vaadin 14,我找不到获取标题文本的方法。
我尝试使用渲染器:
Column column = grid.getColumnByKey(columnKey);
Renderer renderer = column.getRenderer();
// renderer is a ColumnPathRenderer instance but does not provide information about the header.
所以我试着从校长那里得到信息,或者更好的是从校长那里得到信息:
Column column = grid.getColumnByKey(columnKey);
HeaderRow headerRow = grid.getHeaderRows().get(0);
HeaderCell cell = headerRow.getCell(column);
// cell contains a member 'headerRenderer', an instance of TemplateRenderer<SOURCE>, and this
// headerRenderer contains a member 'template' which contains my header text. But there is no
// API to get this information.
那么,如何从vaadin 14 headercell获取标题文本?
暂无答案!
目前还没有任何答案,快来回答吧!