I would like a way to override how the styles and classes are applied to the elements. A good example is applyeStyle in popper.js which you can use to take control of the actual attribute rendering.
Why Is This Update Needed?
We use Elm to render our frontend and Elm is really picky about others modifying elements it has rendered. This means that if we want something to have styles or classes applied we need to pass this information to Elm and not set them directly on the dom element.
Are There Examples Of This Requested Update Elsewhere?
See link to applyStyle in popper.js above. We use that to render popups in Elm and that works fine. Something similar would be great.
If this seems like a possible and good idea I would be willing to write a PR for this.
Requested Update
I would like a way to override how the styles and classes are applied to the elements. A good example is
applyeStyle
inpopper.js
which you can use to take control of the actual attribute rendering.Why Is This Update Needed?
We use
Elm
to render our frontend andElm
is really picky about others modifying elements it has rendered. This means that if we want something to have styles or classes applied we need to pass this information to Elm and not set them directly on the dom element.Are There Examples Of This Requested Update Elsewhere?
See link to
applyStyle
inpopper.js
above. We use that to render popups inElm
and that works fine. Something similar would be great.If this seems like a possible and good idea I would be willing to write a PR for this.