Frage

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.

War es hilfreich?

Lösung

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>
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top