Under the Explicitly Subscribing to Observables section of the Knockout documentation, there is a reference to an event
parameter of the subscribe
function, but the only two examples given on that page are change
and beforeChange
.
By way of example, I tried passing in "focus"
as the third parameter but that didn't work. I'm not too surprised as "focus"
is an event of a DOM Element rather than a knockout observable, but nonetheless it could theoretically have setup a subscription to the focus event for all elements bound to that observable.
Is there a list of all events that can be subscribed to manually using Knockout's observable.subscribe
function?