Two different jQuery UI themes on one page

I want two different jQuery user interface interfaces on the same page, but I want them to have different themes. Is it possible?

+4
source share
2 answers

That's right. JQuery UI CSS Framework has a reliable and complete solution for thematic sections. Just give your chords separate CSS classes - jQuery user interface classes are semantic in nature - and get out! Let me know if you want to give an example.

EDIT: There are many different ways to do this, depending on your needs. See the bottom of this page for more information on how to use the theme with an accordion.

+4
source

According to the article Using multiple jQuery user interfaces on one page from the Filament group, you can provide a CSS area when a theme is loaded that allows you to specify the use of alternative themes on the same page. There is also a link to the demo page .

Disclaimer: I have not tried to do this myself, but it looks promising.

+2
source

Source: https://habr.com/ru/post/1286149/


All Articles