[Vuejs]-How to programmatically add a dynamic style to an element created with createElement in Vue

0👍

I don’t know if this is the best answer, but what I did was:

document.getElementById("elementId").style.display = this.style.display

So I just update the style object and you can work with it the way you want, everytime you update the style property, the elementId style will update too.

If I wasn’t clear enough I can reformulate my explanation.

Leave a comment