Issue
I'm reading pickerOptions
property in this link
And I'm setting
<ion-datetime [(ngModel)]="startDatetime"
(ionChange)="setStartDatetime()"
displayFormat="MMM DD,YYYY - HH:mm"
placeholder="Select Start Datetime"
pickerOptions="{backdropDismiss:false}">
</ion-datetime>
But it doesn't work. I also tried pickerOptions={{backdropDismiss:false}}
according to this issue and got syntax error.
I can set it in my js by
var customPickerOptions = document.getElementById('customPickerOptions');
customPickerOptions.pickerOptions = {backdropDismiss:false};
What's the correct syntax to set it inline in html?
Solution
The magic is in the braces Give it a try
[pickerOptions]="{backdropDismiss:false}"
Answered By - Jesper Petersen
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.