Hi,
As mentioned in documents we need to add additional styling in HTML file.
But we need to provide an option for user to select their preferred color. Is there any possible way to do that?
Regards,
Ravi
Hello, Ravi,
Thank you for your question and for providing the images.
Our team suggests using the following example as a reference for the development of the described functionality: https://jsfiddle.net/flexmonster/juLa2py9/.
Here are some explanations about the code in the sample:
For every theme, we created a button with the setTheme()
function on click. The parameter of this function is a URL to the theme.
The setTheme
function creates a link
tag for the theme, adds it to the DOM, and uses the getPrevTheme()
to remove the previous theme tag from the DOM.
Hope it helps!
Do not hesitate to contact us in case any other questions arise.
Best regards,
Milena
Hi Milena,
It works for our requirement. Thank You.
Regards,
Ravi