on 2019 May 02 11:54 AM
Hello SAP UI5 Community,
I have a use case to have a icon tab bar with dynamic add button as shown in the screenshot. On click of the add button, new icon tab filter gets created and the add button position should be shifted after the newly created icon tab filter.
I am able to achieve the functionality of creating icon tab item dynamically. However, I am unable to place the add button as part of icon tab bar.
My xml -
<App id="idAppControl">
<pages>
<Page title="{i18n>title}" showHeader="false">
<content>
<IconTabBar id="idIconTabBar" stretchContentHeight = "true" showOverflowSelectList = "true" applyContentPadding="true" select = "onIconTabBarSelect" selectedKey="{Model>/Overview}" expanded="true" expandable="false">
</IconTabBar>
<FlexBox alignItems="End" justifyContent="End" height="60px">
<items>
<Button type="Transparent" press="onCreate" icon="sap-icon://add" tooltip="Create new tab"/>
</items>
</FlexBox>
</content>
</Page>
</pages>
</App>
With the above xml, my view looks like (add button is in a separate control after the icon tab bar) -
Please advise.
User | Count |
---|---|
71 | |
11 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.