Closed aknuds1 closed 9 years ago
@aknuds1
This one is cool though; do you want to add a widget to this too ?
@Raynos Aha, hadn't noticed those. I can look into the widget thing, thanks.
@Raynos Having just read up on Mercury widgets, do you suggest I add one to my example as an alternative approach for affecting the DOM?
@Raynos I went ahead and added an alternative approach of using a widget to my example. Let me know if you had something else in mind.
@Raynos Does it look OK to you now? Changing node.style.color
should be correct JavaScript, AFAICT.
Lgtm
Thanks @Raynos :)
I couldn't find any documentation on manipulating real DOM elements (i.e. non-virtual), which can be necessary at least to integrate with 3rd party libraries. So I wrote an example on how to do it (based on virtual-dom's tests).