on 09-05-2019 9:33 AM
Hello guys,
I'm facing some issues when I try to display some Switch objects into a sap.ui.table TreeTable's columns.
This is the code in the xml view:
<t:Column label="Activation" width="8%"> <t:template> <Switch id="switchId" type="AcceptReject" change="onChangeState" state="{= ${Switch} === '' ? false : true }" enabled="true"> <layoutData> <FlexItemData growFactor="1"/> </layoutData> </Switch> </t:template> </t:Column>
See the display before scrolling:
Please, see the display after scrolling:
Thank you in advance!!!
"sap.ui.table.Table" has a limited set of supported controls. Unfortunately, "sap.m.Switch" is not one of them since it's too big (also the icons in other columns look quite big). This breaks the calculation of the vertical scrollbar. For supported controls, see the footnote in https://ui5.sap.com/#/topic/148892ff9aea4a18b912829791e38f3e.html as well as Note 2420757.
You could replace the Switch with, for example, ToggleButton or CheckBox.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.