1. #1
    Sencha Premium Member
    Join Date
    Mar 2007
    Posts
    55
    Vote Rating
    0
    nseb is on a distinguished road

      0  

    Default Default Theme

    Default Theme


    How set the default theme , with Slate ?

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    you have to do a few things... the explorer sample has it all, but a quick outline is...

    1) add <inherits name='com.extjs.gxt.themes.Themes' /> to your module xml

    2) add ThemeManager.register(Slate.SLATE); to somewhere early in ya code (before rendering)

    3) add the ThemeSelector() as a component


    I've not yet figured out how you set the default (ie first) theme... so far it seems to always be the blue theme and that becomes forced...

    I guess a future improvement could be a ThemeManager interface where is queries for available themes and what to do for default, order shown etc...

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2007
    Posts
    55
    Vote Rating
    0
    nseb is on a distinguished road

      0  

    Default


    thanks for your reply.
    But , I want set the theme the first , on slate theme.

    I tested this : GXT.defaultTheme = Slate.SLATE; in the firsrt line on my module , but nothing's

  4. #4
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    I know - it doesn't seem to work and I'm not sure why?

  5. #5
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,241
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    defaultTheme was busted when the new Theme module was created. GXT.defaultTheme is now removed and replaced with GXT.setDefaultTheme(Theme theme, boolean force). Just call this in the first line of onModuleLoad. The force parameter determines if the users previously save theme (via cookies) should be respected. Change is in SVN and will go out in beta 3.

  6. #6
    Sencha Premium Member
    Join Date
    Mar 2007
    Posts
    55
    Vote Rating
    0
    nseb is on a distinguished road

      0  

    Default


    thanks for your reply.
    I've just downloaded beta 3 , it's works , thanks.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar