jQuery UI Widgets Forums General Discussions How share theme

Tagged: 

This topic contains 4 replies, has 3 voices, and was last updated by  JenkeNg 5 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • How share theme #104759

    JenkeNg
    Participant

    I would like to ask how the “theme switching” in the official demo is implemented. I need this feature. Switch “themes” in one page so that all pages can share this theme, thank you.

    How share theme #104762

    admin
    Keymaster

    Hi jenkeNg,

    Theme files are included in the page and we set the “theme” property.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com

    How share theme #104785

    JenkeNg
    Participant

    Thank you for your answer, but I still don’t understand. I opened the subpage with <iframe> </ iframe> on the parent page. Even if each page introduces a theme file, how to use the theme of the parent page in the case of cross-domain. My idea is: set the theme information on the parent page and put it into localStorage, then the subpage gets this information and sets the theme, then there will be problems, when you open the subpage, you can successfully set the theme, but if you When you open a subpage first and then switch the theme of the parent page, the subpages do not switch the theme together. You need to reinitialize the theme properties of all components of the subpage. The official demo does not seem to be implemented this way. I need a more detailed answer, preferably with an example. Thank you.

    How share theme #104786

    Peter Stoev
    Keymaster

    Hi jenkeNg,

    To apply a theme you need to have CSS file and set the ‘theme’ property of a component. That is what we do in our demos on the website.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com

    How share theme #107535

    JenkeNg
    Participant

    hello! Peter Stoev,
    Can you give me an example of a shared theme with parent and child pages?

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.