更改 SAPUI5 中搜索的無資料文字


您只需要使用 noDataText 屬性即可解決您的需求。

您有兩個選項,您可以更改控制器中的內容,也可以更改 XML 中的內容。

選項 1

在 init 方法中呼叫 setNoDataText 方法

this.byId(“<Your Id>”).setNoDataText(“<Your custom text>”)

選項 2

在 XML 中新增 noDataText 屬性

<List noDataText="<Custom text>" />

更新於: 12-6-2020

491 次瀏覽

開啟 職業生涯

完成課程取得認證

開始
廣告
© . All rights reserved.