We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

Flexmonster Layout user preferred styling

Answered
Ravi Kumar asked on November 12, 2020

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
 

2 answers

Public
Milena Pechura Milena Pechura Flexmonster November 13, 2020

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

Public
Ravi Kumar November 16, 2020

Hi Milena,
 
It works for our requirement. Thank You.
 
Regards,
Ravi

Please login or Register to Submit Answer