voidlabs / mosaico

Mosaico - Responsive Email Template Editor
https://mosaico.io
GNU General Public License v3.0
1.7k stars 500 forks source link

conditional mo-display-state property #556

Closed preeti12 closed 4 years ago

preeti12 commented 4 years ago

How to manage "data-mo-display-state" property with some parameter Steps:

  1. set value from mosaico content panel
  2. process values at parser.js
  3. conditionally display block

is that possible with Mosaico Builder?

preeti12 commented 4 years ago

@bago pls assist

bago commented 4 years ago

I'm not sure I understand your ticket, so if this doesn't answer your question, please explain it better and with more details.

There is a data-ko-display="condition" property that will hide or show an html content depending on the declared condition. https://github.com/voidlabs/mosaico/wiki/Template-language#data-ko-attributes

PS: Please stop tagging me or anyone else you don't know in your issues (this won't raise the priority or visibility of your issues). If you need priority support we provide support as part of our commercial offer (https://mosaico.io/commercial/). Thank you!