sapui5 - 为什么对象页面部分标题以大写字母出现以及如何禁用它

标签 sapui5

当我尝试添加 ObjectPageSection 时里面<sections>ObjectPageLayout ,我看到标题是大写字母。

谁能解释一下为什么?我想将其显示为标题。

这是代码片段:

<mvc:View
  xmlns:mvc="sap.ui.core.mvc"
  xmlns="sap.uxap"
  xmlns:layout="sap.ui.layout"
  xmlns:m="sap.m"
  xmlns:blockcolor="sap.uxap.sample.SharedBlocks"
  controllerName="personal.controller.Object"
  height="100%"
>
  <ObjectPageLayout id="ObjectPageLayout"
    enableLazyLoading="false"
    showAnchorBarPopover="false"
    showFooter="true"
  >
    <headerTitle>
      <ObjectPageHeader objectTitle="{DataAgingGroupName}"/>
    </headerTitle>
    <sections>
      <ObjectPageSection title="Section 2">
        <subSections>
          <ObjectPageSubSection title="Deletable Data Subjects">
            <blocks>
              <Table xmlns="sap.m" id="table"
                mode="SingleSelectLeft"
                width="auto"
                items="{invoice>/Invoices}"
                noDataText="{worklistView>/tableNoDataText}"
                busyIndicatorDelay="{worklistView>/tableBusyDelay}"
                growing="true"
                growingScrollToLoad="true"
                updateFinished="onUpdateFinished"
              >
                <columns>
                  <Column id="nameColumn1">
                    <Text text="Data Subject"/>
                  </Column>
                </columns>
                <items>
                  <ColumnListItem
                    type="Navigation"
                    press="onPress"
                  >
                    <cells>
                      <Text id="__picker0"
                        text="{invoice>ProductName}"
                        width="100%"
                      />
                    </cells>
                  </ColumnListItem>
                </items>
              </Table>
            </blocks>
          </ObjectPageSubSection>
        </subSections>
      </ObjectPageSection>
      <ObjectPageSection title="Section 1">
        <subSections>
          <ObjectPageSubSection title="General Information"/>
        </subSections>
      </ObjectPageSection>
    </sections>
    <footer>
      <m:OverflowToolbar>
        <m:ToolbarSpacer/>
        <m:Button
          text="Delete"
          type="Reject"
          press="handleDelete"
        />
      </m:OverflowToolbar>
    </footer>
  </ObjectPageLayout>
</mvc:View>

最佳答案

如果您遵循 Fiori 指南,您可以而且应该disable the uppercase通过 upperCaseAnchorBar 因为默认值为 true那里。 <ObjectPageSection> 也是如此它具有属性 titleUppercase 默认启用。因此,明确禁用它们:

<ObjectPageLayout upperCaseAnchorBar="false" ...>
  <sections>
    <ObjectPageSection titleUppercase="false" ...>

<ObjectPage<strong>Sub</strong>Section> ,另一方面,提供属性 titleUppercase也是,但它的默认值已经是 false那里。

关于sapui5 - 为什么对象页面部分标题以大写字母出现以及如何禁用它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48786298/

相关文章:

javascript - SAPUI5中如何将属性值传递给init方法?

sapui5 - UI5 bootstrap登录片段展示最佳实践

javascript - 如果输入类型设置为 Number 如何使用 sapui5 设置 maxlength

javascript - 异步加载片段时如何使用 `oEvent`?

odata - 如何更改智能表 SAPUI5 中图标的文本

javascript - "%"正在进行 URI 解码,而其他所有内容都没有

javascript - 使用 Puppeteer/Playwright 滚动不适用于 SAPUI5 应用程序

javascript - 检查 HTTP GET 请求返回的文件类型

javascript - 使用 SAPUI5 项目的 sap.ui.ux3.Shell 时无法在 iPhone 上滚动

model - 刷新模型 SAPUI5