EasyUI Forum
October 18, 2025, 09:03:02 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: multiple themes  (Read 15512 times)
catpaw
Jr. Member
**
Posts: 85


View Profile Email
« on: July 07, 2014, 05:57:33 PM »

hi, I've searched for "themes" but nothing came out.

my question is:

is posible to use at same time two or even more themes?

thanks
Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 on: July 08, 2014, 12:14:19 AM »

You have to use only one theme in a page. But you can change theme dynamically for the page at runtime.
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #2 on: July 08, 2014, 01:06:46 AM »

Jarry
do you have some simple demo of how to do that?
Thanks.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #3 on: July 08, 2014, 01:28:54 AM »

Your default theme may be:
Code:
<link rel="stylesheet" type="text/css" href="/easyui/themes/default/easyui.css">

To change the theme, just change the <link>'s 'href' attribute with a simple call.
Code:
var link = $('#content').find('link:first');  // find the link
link.attr('href', '/easyui/themes/gray/easyui.css');
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #4 on: July 09, 2014, 11:49:34 AM »

Thank you!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!