zoukankan      html  css  js  c++  java
  • SAP Fiori Elements List Report table 里的普通按钮,Global 按钮 和 Determining 按钮

    我在 manifest.json 的 extends 区域里定义了一个普通的自定义按钮,global 属性为 false:

    "extends": {
                "extensions": {
                    "sap.ui.controllerExtensions": {
                        "sap.suite.ui.generic.template.ListReport.view.ListReport": {
                          "controllerName": "com.sap.jerry.jerryfioriapp.ext.controller.ListReportExtension",
                            "sap.ui.generic.app": {
                              "SEPMRA_C_PD_Product": {
                                "EntitySet": "SEPMRA_C_PD_Product",
                                "Actions": {
                                  "ActionName1": {
                                    "id" : "ActionName1",
                                    "text" : "Action Name One",
                                    "press" : "onCustomAction1",
                                    "requiresSelection": false,
                                    "global":false
                                  }
                                }
                            }
                        }
                    }        
                }
                }
            },
    

    外观如下:

    global 属性改成 true 后:

    button 的按钮位置发生了改变,跑到页面右上角了:

    从 breakoutActions.fragment.xml 的实现源代码里发现,custom action 还有一个 determining 属性:

    设成 true 之后,跑到屏幕下方 footer 区域了。虽然位置发生了变化,不影响点击按钮后的事件响应。

    更多Jerry的原创文章,尽在:"汪子熙":

  • 相关阅读:
    【NOI2015】荷马史诗
    Codeforces Round #415 (Div. 2)
    Codeforces Round #408 (Div. 2)
    bzoj3230
    poj1743
    poj1226
    bzoj1295
    bzoj1294
    bzoj1296
    bzoj1239
  • 原文地址:https://www.cnblogs.com/sap-jerry/p/14748982.html
Copyright © 2011-2022 走看看