Hi All,
I would like to create a custom control in sapui5 by using existing control.
For example instead of writing this in my view:
<Bar> <contentLeft> <Button icon="sap-icon://nav-back" press="onNavBack"></Button> </contentLeft> <contentMiddle> <OverflowToolbar id="otb2"> <Input liveChange="onSearchInBoard" placeholder="Search..."> <layoutData> <OverflowToolbarLayoutData minWidth="400px" shrinkable="false" priority="NeverOverflow" /> </layoutData> </Input> </OverflowToolbar> </contentMiddle> </Bar>
I would like to write something like :
<custom:Bar contentLeftButtonPress="onNavBack" contentLeftInputLiveChange="onSearchInBoard" ></custom:Bar>
Can we write the code in an xml document and call it from my custom declaration of my control? Or how to ?Thanks and regards
fragment
You already have an active moderator alert for this content.
Thanks Jun, But I need to embbed some native functionnality and in a fragment I'm not able to call a controller that can do it for me this is why I want to create a custome control to keep the native functionnality...
https://ui5.sap.com/#/topic/d12d2ee6a5454d799358d425f9e7c4db
Add comment