All these events exists as config-parameters, and as $.Callbacks
on the global pager
.
Thus they can be used like
data-bind="page: {onSomeEvent: someCallback}"
or
pager.onSomeEvent.add(someCallback);
onNoMatch : {page:Page,route:String[]}
onMatch : {page:Page,route:String[]}
Similar to onNoMatch
, but triggers whenever a match is found.
onBindingError : Function({page:Page,url:String,xhrPromise:$.Promise})
onSourceError : Function({page:Page,url:String,xhrPromise:$.Promise})
beforeHide : Function(Page)
beforeShow : Function(Page)
afterHide : Function(Page)
afterShow : Function(Page)
beforeRemove : Function(Page)
Triggered when a page is removed from the DOM but before the page is removed from the parent page.
afterRemove : Function(Page)
Triggered when a page is removed from the DOM but after the page is removed from the parent page.