Set Current Enyo 1.0 Theme

edited February 2012 in Enyo 1.0
Is it possible to set the current Enyo 1.0 theme globally?

Something like:

enyo.Theme.setTheme(...)

I'm sure there must be a sample or API out there somewhere but Google has failed me.

Thanks, Alan.

Comments

  • Well, there is

    enyo.registerTheme(...)

    Its basically like a using directive for Enyo namespaces. For example, you can set the Heritage theme by calling.

    enyo.registerTheme(enyo.Heritage);

    Its not documented, so I'm not sure if its save to use it. I use it pretty extensively in AdvancedBrowser though and never had any problems.
  • MaKleSoft

    Thanks for the quick response. Really appreciated.
Sign In or Register to comment.