Basic calendar widget operations

This code snippet shows how to create a calendar widget and set a callback on date changed.