Search code examples
sapui5sap-web-ide

add text between buttons in the footer of semantic:footerCustomActions


i'm looking for a way to add a text between the button of 'semantic:negativeAction' and the button of 'semantic:positiveAction' in the footer of a semantic content within a semantic page of 'sap.f.semantic' .

<semantic:positiveAction>
        <semantic:PositiveAction  text="+"/>
    </semantic:positiveAction>



    <semantic:negativeAction>
        <semantic:NegativeAction text="-" />
    </semantic:negativeAction>

Solution

  • Have you considered using customFooterContent aggregation in semantic page for footer

    <semantic:customFooterContent>
                            <Button text="Approve" type="Accept" press="onAcceptPress"/>
                            <Label text="Test Text between two buttons"></Label>
                            <Button text="Reject" type="Reject" press="onRejectPress"/>
                        </semantic:customFooterContent>
    

    Link: https://sapui5.hana.ondemand.com/#/api/sap.m.semantic.SemanticPage