簡體   English   中英

SAPUI5 SmartTable 動態忽略列

[英]SAPUI5 SmartTable dynamically ignore Columns

有沒有辦法使用 sap.ui.comp.smarttable.SmartTable 的ignoredFields屬性來動態忽略列? 應用程序運行時,應更改ignoredFields的值。 使用ignoredFields是正確的方法還是有更好的方法? I already tried calling the setIgnoredFields() function of my SmartTable, but it didn't make any effect on my SmartTable, except when I called it in the onInit() function of the respective controller, which of course would defy the dynamic approach i正在照顧。

我發現在 SmartTable 中動態隱藏列的唯一方法是使用我需要的所有列重新定義內部表的列,然后相應地設置這些列的“可見”屬性。

我仍然想知道這是否是最好的解決方案,但它是唯一有效的解決方案......

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM