jQuery UI Widgets Forums General Discussions How share theme

Tagged: 

This topic contains 3 replies, has 3 voices, and was last updated by  Peter Stoev 1 week, 1 day ago.

Viewing 4 posts - 1 through 4 (of 4 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

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

You must be logged in to reply to this topic.