EasyUI Forum
May 02, 2024, 08:50:24 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: change datagrid theme dinamically [RESOLVED]  (Read 10542 times)
evaro
Newbie
*
Posts: 7


View Profile Email
« on: March 29, 2014, 09:27:10 AM »

Hello, i have some themes for datagrid... my users need change for better vision ( olds mans )

i offer 3-4 themes  in combobox but can't apply theme upon datagrid ... (theme builder change theme on fly ) is this possible?

the site have themes/default, themes/theme1, themes/theme2.

combobox value have = /themes/theme1/easyui.css , ....


« Last Edit: March 30, 2014, 10:42:10 AM by evaro » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 29, 2014, 05:43:24 PM »

The simplest way to change theme is to set the 'href' attribute for a <link> element.
Code:
var link = $('link');  // select your specified link
link.attr('href', ...);
Logged
evaro
Newbie
*
Posts: 7


View Profile Email
« Reply #2 on: March 30, 2014, 10:36:55 AM »

Exactly, your suggestion is correct ... again! ... thanks a lot.
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!