如何在Vaadin中使用HTML模板? [英] How to use HTML template with Vaadin?
问题描述
我是Vaadin的新手.
我已经使用HTML和JS为我的Web应用程序创建了模板.
如果不确定我是否只能使用Vaadin开发相同的模板,如何将开发的模板与Vaadin一起使用?
使用 http://demo.vaadin.com/sampler#LabelRich . >
通常,模板和页面"的概念与Vaadin中开发应用程序是正交的.
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?
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.
这篇关于如何在Vaadin中使用HTML模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!