How to create custom module for background color only.

New Contributor

I want one custom module which user can select color for row using this module. So is it good way to create custom module for background color or it simply add using css only.

Reply
0 Upvotes
1 Reply 1
Highlighted
Regular Advisor | Platinum Partner

@@@suniltodkar, if you need something where the user can choose the background color of an element, you could create a custom module and inline the css.  This is often used for allowing the user to select an background image.

example:

 <div style="background-color: {{ module.color }};">
 </div>

 

dennis