gadfly361 / rid3

Reagent Interface to D3
MIT License
142 stars 6 forks source link

Add the ability to set a top level class #13

Closed ryanechternacht closed 4 years ago

ryanechternacht commented 4 years ago

Add the ability to set class on highest-level div the whole component (and update the README accordingly).

I was using this to build some custom, reusable charts, and I didn't have a way within rid3 to apply a class to all of my chart types.

In this PR I applied to the class to the div that wraps the whole component (same place the id is applied. I could easily imagine applying it further down the chain, if that makes more sense to you.

gadfly361 commented 4 years ago

@ryanechternacht Sounds good to me, thanks for the PR!

gadfly361 commented 4 years ago

@ryanechternacht Just pushed version 0.2.2 with this change