How to use api.onPageChange with api.createWidget?

Excellent, really appreciate your patient and clear explanation, great to have that option too.