knockout-switch-case icon indicating copy to clipboard operation
knockout-switch-case copied to clipboard

Add tko-switch-case.js

Open danieldickison opened this issue 4 years ago • 0 comments

This is a port of the original knockout-switch-case.js to work with the current version of tko. I initially tried to do a minimally invasive and backwards compatible change in knockout-switch-case.js itself but I couldn't get it to work well with the wrapped if binding handler now being implemented as a subclass BindingHandler while the switch/case handler keeps its init/update implementation.

I didn't port the case.visible binding as, from what I understand, dots in binding names are no longer supported.

danieldickison avatar Jul 22 '21 00:07 danieldickison