zoukankan      html  css  js  c++  java
  • Step 11: Pages and Panels

    Step 11: Pages and Panels

    webapp/view/App.view.xml

    <mvc:View
       controllerName="sap.ui.demo.walkthrough.controller.App"
       xmlns="sap.m"
       xmlns:mvc="sap.ui.core.mvc"
      displayBlock="true">
       <App>
          <pages>
             <Page title="{i18n>homePageTitle}">
                <content>
                   <Panel
                      headerText="{i18n>helloPanelTitle}">
                      <content>
    
                         <Button
                            text="{i18n>showHelloButtonText}"
                            press=".onShowHello"/>
                         <Input
                            value="{/recipient/name}"
                            description="Hello {/recipient/name}"
                            valueLiveUpdate="true"
                            width="60%"/>
                      </content>
                   </Panel>
                </content>
             </Page>
          </pages>
       </App>
    </mvc:View>
    
    

    使用了sap.m.Page和sap.m.App
    sap.m.App为我们做了2件重要的事

    • 它将一堆属性写入 index.html 的标题中,这些属性是在移动设备上正确显示所必需的。
    • 它提供了在带有动画的页面之间导航的功能。 我们将很快使用它。

    displayBlock 属性:为了保证全屏时候,高度的正确显示,设置为true

    vx:xiaoshitou5854

  • 相关阅读:
    INSERT
    jQuery选择器
    工厂模式
    快乐的Linux命令行
    Linux常用命令与基本概念
    RAC 集群更换IP
    RMAN-03009 ORA-19504 ORA-27038
    Redhat 6.4_联网 yum 配置
    /dev/sda3: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
    nginx安装笔记
  • 原文地址:https://www.cnblogs.com/xiaoshiwang/p/15161806.html
Copyright © 2011-2022 走看看