Issue #923: No cancel button in export dialog
Added optional onCancel behavior for the widget