Вопрос

I understand that I can use

<set-configuration-property name="CssResource.style" value="pretty"/> 

to get my class names to show from css in my resources folder. However, I have been unable to do so with inlined style in ui.binder. For example, I can't get the css class names below to appear with the non-obfuscated class name.

<ui:style field="style">
    .alignRight {float:right};
    .displayNone {display:none};
    .ack { background-color: grey; border: solid 2pk darkgray; float: right;}
    .fullwidth { left: 0px; right: 0px;}
</ui:style>

Any suggestions? Thanks.

Это было полезно?

Решение

If you want those classes to be available always with its name and not being modified by the gwt compiler, declare them as external

<ui:style field="style">
   @external .alignRight, .displayNone, .ack, .fullwidth;
   .alignRight {float:right};
   .displayNone {display:none};
   .ack { background-color: grey; border: solid 2pk darkgray; float: right;}
   .fullwidth { left: 0px; right: 0px;}
</ui:style>
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top