Hello,
I'd like to disable hyperlinks using the disable binding, so that their click bindings don't fire while they are disabled.
At the moment I have an anchor like this:
<a class='today' data-bind='click: showToday, css: { disabled: isTodayShown }'>today</a>
and I just check in the showToday handler whether isTodayShown is false before running the body. But, it seems that it would be more consistent with disabling inputs if I could write this:
<a class='today' data-bind='click: showToday, disable: isTodayShown'>today</a>
and only have the click handler fire if the link is enabled. To get this functionality, it looks like I would have to change the definitions built in bindings. Is there a good way to do this without a change to core knockout?
Thanks,
Douglas