如何在Vaadin中使用HTML模板? [英] How to use HTML template with Vaadin?

查看:117
本文介绍了如何在Vaadin中使用HTML模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆