google-code-export / gwt-cal

Automatically exported from code.google.com/p/gwt-cal
1 stars 0 forks source link

setView remove additional style #172

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Calendar _calendar = new Calendar();
this.addStyleName("my-calendar-look");  
...
weekButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                _calendar.setView(CalendarViews.DAY,7);
            }

        });

What is the expected output? What do you see instead?
- add style to calendar
- call  setView method
- the added style has lose..

What version of the product are you using? On what operating system?
0.9.3.1

Thank you for your great job ;)

Original issue reported on code.google.com by b.mouch...@gmail.com on 11 Jan 2013 at 7:07

GoogleCodeExporter commented 9 years ago
Hi Benoit,

I'm not sure that's really a bug. If you want to use your own theme, you should 
take a look to this page: http://code.google.com/p/gwt-cal/wiki/Themes

Also the gwt-cal-demo code should give you some tips.

If you still have problems don't hesitate to ask through the mailing-list.

Regards,
Carlos.

Original comment by ctasada on 22 Jan 2013 at 8:43

GoogleCodeExporter commented 9 years ago
Hi,

i dont't want implement my own them. I jsut want add little css property.
Anyway addStyleName is standard gwt widget function. I think, it must work.

My hack :
        Calendar a = new Calendar() {
            @Override
            public void setView(CalendarViews view, int days) {             
                super.setView(view, days);
                this.addStyleName("my-calendar-look");
            }
        };

Regards,
Benoît

Original comment by b.mouch...@gmail.com on 23 Jan 2013 at 2:14

GoogleCodeExporter commented 9 years ago
Which properties do you want to modify? Can you paste some example so I can 
take a look to what's appending?

Thanks

Original comment by ctasada on 23 Jan 2013 at 11:18

GoogleCodeExporter commented 9 years ago

Original comment by Brad.Ryd...@gmail.com on 2 May 2013 at 8:45