How to use HTML template with Vaadin?

谁说我不能喝 提交于 2019-12-07 04:56:14

问题


I am new to Vaadin.

I have created template for my web application in HTML and JS.

How to use the developed template with Vaadin as am not sure if I will be able to develop same template using Vaadin only?


回答1:


It may be possible to re-use some of the layout of the template using the CustomLayout layout component in Vaadin.

You can also render the contents of a template into a Label component, and display the label in the application. See http://demo.vaadin.com/sampler#LabelRich for a small demo.

Generally, though, the idea of templates and "pages" is orthogonal to developing applications in Vaadin.



来源:https://stackoverflow.com/questions/9563406/how-to-use-html-template-with-vaadin

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