首页 > 解决方案 > 在语义页脚的按钮之间添加文本:footerCustomActions

问题描述

我正在寻找一种在 'sap.f.semantic' 语义页面内的语义内容页脚中的 'semantic:negativeAction' 按钮和 'semantic:positiveAction' 按钮之间添加文本的方法。

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



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

标签: sapui5sap-web-ide

解决方案


您是否考虑过在语义页面中使用 customFooterContent 聚合作为页脚

<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>

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


推荐阅读