EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 28, 2024, 07:09:49 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
change datagrid theme dinamically [RESOLVED]
Pages: [
1
]
« previous
next »
Print
Author
Topic: change datagrid theme dinamically [RESOLVED] (Read 10618 times)
evaro
Newbie
Posts: 7
change datagrid theme dinamically [RESOLVED]
«
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
Re: change datagrid theme dinamically [problem]
«
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
Re: change datagrid theme dinamically [Resolved]
«
Reply #2 on:
March 30, 2014, 10:36:55 AM »
Exactly, your suggestion is correct ... again! ... thanks a lot.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...