Want to have a layout which arrange in a tabular form

假装没事ソ 提交于 2019-12-20 04:31:31

问题


I am very new to Vaadin. My requirement is like in my page I need to have 4 input component per row. There would be 4 rows like this. I need a layout which will allow me to define number of columns and keep align it.

There should not be any border like we have in table. Please suggest me any suitable layout and how can I customize that.

Thanks


回答1:


You are probably looking for a GridLayout, it provides enough flexibility to size your grid 'cells', maintain consistency and set expand ratios for row and columns separately.

The other option for you is to use a CustomComponent and in case you are using Vaadin plugin for eclipse (and I don't have experience with Vaadin on any other IDE) you can use their WYSIWYG editor to translate your requirement to a custom component.



来源:https://stackoverflow.com/questions/23575152/want-to-have-a-layout-which-arrange-in-a-tabular-form

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!