[英]SAPUI5, DatePicker-Change Event only triggered by an manual Input or by Using DatePicker setDateValue() - doesn't work
DatePicker change
事件僅由手動輸入觸發。 使用setDateValue()
不會觸發change
事件。
changeValidation()
確實對任何選定的輸入進行了所有必要的驗證,但是只有在手動完成輸入或使用DatePicker
時才會觸發 function。
this.byId("CalendarId").setDateValue(any Date);//Doesn't trigger the event at all
如何使用setDateValue()
或任何其他場景觸發change
事件?
您可以在fireChange()
之后使用setDateValue()
。 您可以手動觸發fireChange()
。
var oDPicker = this.byId("CalendarId")
oDPicker.setDateValue(any Date);
oDPicker.fireChange();//Manually trigger the event
fireChange()
也將觸發所有驗證方法,與change
事件相同。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.