You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are there plans to send the CSS class names for the buttons along with the name and listener?
It would come in handy for styling especially with Bootstrap.
<divclass="info" data-reactid=".0.1.0"><spandata-reactid=".0.1.0.0:$0">Simple example with one button and listener</span><divclass="buttons" data-reactid=".0.1.0.1"><buttonid="close" class="close" data-reactid=".0.1.0.1.$0">close</button></div></div>
Actually I want to keep the class name and the button name separate. It would be good to have another property for the CSS classes along with name and listener. Something like this:
Activity
xeodou commentedon Apr 2, 2015
hi @emilian the name of the button will transfer to the button's classname, I think the name is what you want.
Here is the demo
emilian commentedon Apr 2, 2015
Thanks for the reply.
Actually I want to keep the class name and the button name separate. It would be good to have another property for the CSS classes along with name and listener. Something like this:
xeodou commentedon Apr 2, 2015
@emilian I get it. I will add additional property
className
.And change it likeIs it fine for you ?
emilian commentedon Apr 2, 2015
Yes, that would be perfect. Thanks xeodou.
Add button custom class name support. #2
xeodou commentedon Apr 2, 2015
@emilian I am already push the new code. You can upgrade the package through npm.
emilian commentedon Apr 3, 2015
I upgraded yesterday and it is working just fine. Thanks for the quick turnaround!
xeodou commentedon Apr 3, 2015
It;s fine.