更改 SAPUI5 中搜索的無資料文字
您只需要使用 noDataText 屬性來滿足您的要求。
您有兩種選擇,可以在控制器中進行更改或在 XML 中進行更改。
選項 1
在 init 方法中呼叫 setNoDataText 方法
this.byId(“<Your Id>”).setNoDataText(“<Your custom text>”)
選項 2
在 XML 中新增 noDataText 屬性
<List noDataText="<Custom text>" />
廣告
您只需要使用 noDataText 屬性來滿足您的要求。
您有兩種選擇,可以在控制器中進行更改或在 XML 中進行更改。
選項 1
在 init 方法中呼叫 setNoDataText 方法
this.byId(“<Your Id>”).setNoDataText(“<Your custom text>”)
選項 2
在 XML 中新增 noDataText 屬性
<List noDataText="<Custom text>" />