...if you mean actually changing a value in an already defined style sheet, then you need to use JSNI (or rethink your application to change the style applied to elements rather than the style definition).
//A On 18 Okt, 15:52, Adam T <[email protected]> wrote: > You can do it in at least 4 different ways in GWT. Say you define a > label as Label first = new Label("First Label") and add it to the DOM, > then you can do one of the following to hide it: > > a) first.setVisible(false); > b) first.getElement().getStyle().setVisibility(Visibility.HIDDEN); > c) first.getElement().getStyle().setProperty("display", "hidden"); > d) first.addStyleName("hidden-style"); (assuming you have hidden- > style defined in your style sheet and that sets the display property > to hidden) > > //Adam > > On 18 Okt, 09:07, bhomass <[email protected]> wrote: > > > I found there is a way to change css rules using javascript. > > >http://twelvestone.com/forum_thread/view/31411. > > > is there a way to do this using gwt? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
