【发布时间】:2015-01-12 09:59:14
【问题描述】:
我正在尝试在 JSNI 中使用 css 资源的客户端包,但找不到任何有用的代码。 我想知道如何在 JSNI 中调用 css 资源,以及如何在 JSNI 中使用客户端包。
我的普通代码:--
Resource.INSTANCE.button().ensureInjected();
Resource res = GWT.create(Resource.class);
button.setStyleName(res.button().gwtbutton());
jsni怎么写?
Here Resource---->是接口扩展clientbundle。 gwtbutton ---> 是 css。
我在此链接https://groups.google.com/forum/#!topic/google-web-toolkit/94v4tjCZiBo 中读到我们可以通过 jsni 使用 CssResource。但我不清楚他的语法用法。
【问题讨论】:
标签: css gwt resourcebundle jsni