Hi team,
how could we change the skin dynamically of the root webix widget please ?
Hi team,
how could we change the skin dynamically of the root webix widget please ?
it depends on how you load/package css
files.
if you are using webpack, try lazy css loader
for classic css link
method try to change link href on demand
in any case do not forget to apply new skin by webix.skin.set("new_skin_name")
there is a bit hackish method
https://snippet.webix.com/j4ymiff6
better way is setting some attribute/id to link and get it by that attribute/id
Thank you @intregal
but when i replace flat by mini
https://snippet.webix.com/q99sbbl4
this apply change but not like the top right corner cog menu of the snippet engine
only the fon size change, not the interface
do you know how the template engine make it working ?
yes, you are right.
I don’t think it is possible to implement this.
at least default values logic has to be changed.
if you are using webix jet, app refreshing (full reload) may help.
ok
thank you for your help