CMS Development

suniltodkar
Participante

How to create custom module for background color only.

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.

0 Me gusta
1 Respuesta 1
dennisedson
Equipo de producto de HubSpot
Equipo de producto de HubSpot

How to create custom module for background color only.

@@@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>