這是我如何建立新的控制:Sapui5用我的新CONTROLE在XML
https://sapui5.hana.ondemand.com/sdk/#docs/guide/91f0a8dc6f4d1014b6dd926db0e91070.html
sap.ui.somelib.SomeControl.extend("my.OwnControl", {
...
init: function() {
if (sap.ui.somelib.SomeControl.prototype.init) { // check whether superclass implements the method
sap.ui.somelib.SomeControl.prototype.init.apply(this, arguments); // call the method with the original arguments
}
//... do any further initialization of your subclass...
}
可以使用一些CONTROLE在我的XML看法?
我用符號與依賴注入等: 代碼('sap.ui.define([ \t「SAP /米/ ObjectListItem「 ],function(ObjectListItem){ \t」use strict「; \t返回ObjectListItem.extend( 「my.newListItem」,{ ') 和以xml: 代碼('<芯:查看的xmlns:我= 「我」> <定製:SystemStatusListItem標題=「膝上型「intro =」{Description}「id =」tem1「/>') – migacz1125