vue-svg-loader icon indicating copy to clipboard operation
vue-svg-loader copied to clipboard

Dynamically add class to path in SVG

Open mohamedhamad opened this issue 5 years ago • 0 comments

I have a map svg with paths to each country, and I'd like to be able to add a class to a path based on actions in the component. For instance, if there is a array object of selected countries, I can then add a "selected" class to the map paths with the ID's of that country and control the selected fill via css. is this possible?

mohamedhamad avatar Jun 11 '19 22:06 mohamedhamad