如何在SAPui5中隐藏树表的列
我目前正在sap.ui.table库中使用TreeTable。我只是想在表中没有数据时隐藏表,或者在没有数据时隐藏几列。树表中没有名为setVisible()的方法。有什么建议吗 我的XML代码如何在SAPui5中隐藏树表的列,sapui5,Sapui5,我目前正在sap.ui.table库中使用TreeTable。我只是想在表中没有数据时隐藏表,或者在没有数据时隐藏几列。树表中没有名为setVisible()的方法。有什么建议吗 我的XML代码 <table:TreeTable id="TreeTableApproval" rows="{path:'',parameters: {arrayNames:['item']}}" selectionMode="None"
<table:TreeTable id="TreeTableApproval" rows="{path:'',parameters: {arrayNames:['item']}}" selectionMode="None"
ariaLabelledBy="title">
<table:columns>
<table:Column width="13rem">
<Label text="Approver ID"/>
<table:template>
<Text text="" wrapping="false"/>
</table:template>
</table:Column>
<table:Column width="13rem">
<Label text="Name"/>
<table:template>
<Text text="" wrapping="false"/>
</table:template>
</table:Column>
</table:columns>
</table:TreeTable>
setVisible()
方法借用自sap.ui.core.Control
,在sap.ui.table
中不可用。您可以设置可见性,例如,this.byId(“tableid”).setVisible(false)
或this.byId(“columnid”).setVisible(false)setVisible()
方法是从sap.ui.core.Control
借用的,在sap.ui.table
中不可用。您可以设置可见性,例如,this.byId(“tableid”).setVisible(false)
或this.byId(“columnid”).setVisible(false)
{
"contracts": {
"item": [{
"": "",
"item": [{
"": "",
"": ""
}, {
"": "",
"": ""
}]
}]
}
}