SAP Fiori footer的重写方式

55 阅读1分钟

Created by Wang, Jerry, last modified on Sep 25, 2015

/**
* Overrides the Scaffold code’s defineFooter method. We use
* our own footer and just decorate it with the settings
* button.
*/
改写了oMHFHelper的defineFooter方法。以后每次该方法被调用,injectGenericSettingsButtonToMyTaskFooter都会被执行。
clipboard1

稍后setHeaderFooter执行,delegate到我们改写的方法中。

clipboard2
clipboard3

把footer bar里左边的filter button取出缓存起来:
clipboard4
clipboard5
clipboard6
clipboard7
clipboard8
clipboard9
clipboard10
clipboard11
clipboard12

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
公众号截图