Header Ad

Monday, April 2, 2012

Inline styles in UiBinder of GWT

The following is the sample example for writing inline styles with in the UIBinder file of GWT.

<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'>

  <ui:style>
    .setColor { background-color: Skyblue; }
  </ui:style>

  <div class='{style.setColor}'>
    Hello, <span ui:field='nameSpan'/>.
  </div>
</ui:UiBinder>

No comments: