在 SAPUI5 中,如何在 StandardListItem 中新增兩個圖示
不要使用 StandardListitem,應該使用 CustomListitem。使用 CustomListitem,可以新增任何種類的內容。
根據 SAP 文件,CustomListitem 有以下用法
此帶有內容聚合的控制元件可用於自定義 SAP 未提供的標準列表項。列表模式和列表項型別也適用於 CustomListItem。
注意:儘管內容聚合允許任何控制元件,但複雜的響應式佈局控制元件(例如表格、表單)不應作為內容聚合。
new sap.m.CustomListItem(sId?, mSettings?)
引數型別預設值說明
sId?字串新控制元件 ID,如果沒有提供 ID,則會自動生成。
mSettings?物件新控制元件的初始設定
廣告