Does the Metronic DataTable supports SVG files when rendering columns? I have tried and it seems it doesn’t recognizes the file.
The datatable rendering does not support SVG. How did you include SVG into datatable?
I took the Column Rendering example, instead of using PNG or any other picture formats I’m using SVG. I got the SVG working by adding the width manually:
img class=”m–img-rounded m–marginless” src=”/assets/media/img/flags/’ + row.flag + ‘” alt=”photo” width=”40px”
The problem is that the class assign to the picture doesnt recognize SVG so the width is never set.
We don’t have class name m–img-rounded and m–marginless. Can you set the width via style attribute?
Jai, you are right the classes are:
And the only way I got the SVG files to work is, like I said before and you suggested in your last post, by adding the inline attribute width to each img tag.
You must be logged in to reply to this topic.