a Client Bundle).
inside SampleView.css :
.gwt-Label{
color:yellow;
}
inside my view:
GlobalResources.INSTANCE.sampleView().ensureInjected();
Label lblNewLabel = new Label("New label");
rmpnlTestPanel.add(lblNewLabel, new FormData("100%"));
The widget is rendered but not styled with the yellow color.
But, if I do:
lblNewLabel.setStyleName(GlobalResources.INSTANCE.sampleView().gwt_Label());
The widget is now styled with the yellow color.
Even, if I add the
.gwt-Label{
color:yellow;
}
inside the CSS file included in my static html file, it works and the
label is styled with the color yellow
(<link type="text/css" rel="stylesheet" href="ImageViewer.css">)
Tanx.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment