-
-
Save jasonlemay/1bc16f187fc26d1ab136 to your computer and use it in GitHub Desktop.
Getting started with CSS (GSS) in GWT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/main/java/com/company/project/client/application/contact/ContactView.ui.xml | |
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'> | |
<ui:with field="resources" type="com.company.project.client.resources.AppResources"/> | |
<ui:with field="pageResources" type="com.company.project.client.resources.PageResources"/> | |
<div class="{pageResources.contact.contact}"> | |
<h1>My contact page!</h1> | |
<p class="{resources.style.class_from_style_gss}"> | |
This is a beautiful contact form. | |
</p> | |
<p class="{pageResources.homepage.homepage_big_title}"> | |
Hey look, I can also use a class from the homepage, even though I should probably don't do this, right? | |
</p> | |
<form class="{pageResources.contact.contact_form}"> | |
<input type="email" placeholder="your email please" /> | |
<input type="submit" value="Go!" /> | |
</form> | |
</div> | |
</ui:UiBinder> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment