jQuery UI Widgets Forums General Discussions theme changing

This topic contains 3 replies, has 4 voices, and was last updated by  Peter Stoev 4 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • theme changing #105053

    arkgroup
    Participant

    I have several widgets in my page and switch button to change theme.
    I use global variable to set theme for all my controls.
    Do I need to reload page to get new theme?

    Thanks.

    theme changing #105063

    Todor
    Participant

    Hello arkgroup,

    If you want to change the theme you have to include the proper .css file in order to work. Also you have to do the following for every widget $("#widget").jqxWidget({ theme: themeVariable });

    Let us know if you need further assistance.

    Best Regards,
    Todor

    jQWidgets Team
    https://www.jqwidgets.com

    theme changing #107539

    JenkeNg
    Participant

    I am also facing this question and found that the earlier answer to this question is that you can set $ .jqx.theme = ‘theme name’ to control the global theme. I wrote this in another development version, but it works, but I have a new springboot project, and the front end is the same, but I ca n’t set the value of $ .jqx.theme, which makes it impossible to control the theme.

    theme changing #107547

    Peter Stoev
    Keymaster

    Hi JenkeNg,

    The appropriate way to set the “theme” is the one my colleague pointed out – by setting the theme property of the widget

    Best Regards,
    Peter

    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.