Closed ooflorent closed 10 years ago
can't you already do selected="{selected}"
using attr bringing?
No because selected
without value means selected
. This is the same
behavior as checked
.
Gotcha. So this could be added by just specifying your own binding when making a reactive instance which gets into the delicate question of what we ship in this library and what we don't. I think a good starting point is to ship support for things that are part of HTML and this would fall under that umbrella. I will test and merge soon.
Please add docs to the readme for this binding.
I've updated the Readme.md
.
cc @defunctzombie
It will enable
data-selected
bindings.