Does anyone know how to make the SAPUI5 control sap.m.DatePicker read only? I would like to be able to show the standard calendar UI to the user if he clicks on the little calendar icon but the user shouldn't be allowed to actually change the date.
The only workaround I found so far is to attach a function to the change event and reset the value property to the original value. But that's neither good nor pretty.
Here's a little JSBin example with a DatePicker.
var picker = new sap.m.DatePicker();
// is there a better solution than this: `??????