sap.m.Table选择单选模式没有单选按钮

时间:2014-09-03 09:34:29

标签: sapui5

当我们设置mode="SingleSelect"时,会显示单选按钮。我们怎样才能隐藏每一行的单选按钮?

<Table id="idDetailTable"
  growing="true"
  selectionChange="vendorSelect"
  includeItemInSelection="true"
  mode="SingleSelect"
>

1 个答案:

答案 0 :(得分:3)

首先结帐Tims awesome summary of sap.m.ListModes here。其次,这是你的代码:

<Table id="idDetailTable"  
       items="{tabledata>/Items}" 
       height="100%" 
       growing="true" 
       selectionChange="vendorSelect" 
       includeItemInSelection="true"   
       mode="SingleSelectMaster" 
       modeAnimationOn="false">

查看sap.m.ListMode了解详情。

Btw:ANY UI5枚举的字符串值等于其命名空间的最后一部分:sap.m.ListMode.SingleSelectMaster - &gt; SingleSelectMaster。这就是为什么你只能在XMLView或HTMLView中使用最后一部分。

相关问题