开发者

Vaadin How to make the table header invisible

开发者 https://www.devze.com 2023-03-10 12:27 出处:网络
I have a requirement where i need to display patients schedule details in ta开发者_高级运维bular form.

I have a requirement where i need to display patients schedule details in ta开发者_高级运维bular form. But I should not display the table column headers instead I will have a panel with some navigation arrows and a date field where in i have display the patients data according to some navigation rules. And also each table row should expand when user selects a row displaying additional information about that pirticular patient.

Is it possible to display a table without table column headers, and with expandable table rows in Vaadin. I am quite new to vaadin so any help is greatly appreceated.

Regards Ajay


Yes, it is possible to display a table without column headers.

Please use the method setColumnHeaderMode with Table.COLUMN_HEADER_MODE_HIDDEN as argument.

for example:

Table aTable=new Table(); ... aTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);


CRH's answer is the right answer not to display table headers.

for expandable table you can use TreeTable component which you can find here

0

精彩评论

暂无评论...
验证码 换一张
取 消