How to extend the NavigationListItem control in SAPUI5? -




i want extend navigationlistitem control accept sap.ui.core.control objects in it's aggregation. have created separate file extend control , added new aggregation called 'rows' type sap.ui.core.control in metadata section. extended control getting called in view, not displaying child controls added new aggregation 'rows'. please advise, if need add more extension file.

extension code:

sap.ui.define(["sap/ui/core/control",                "sap/tnt/navigationlistitem"],     function(control, navigationlistitem) {     "use strict";     return navigationlistitem.extend("ajacontrolext.control.navigationcustomlistitem", {         metadata: {             properties: {             },             defaultaggregation: "rows",             aggregations: {                 rows: {                     type: "sap.ui.core.control",                     multiple: true,                     singularname: "row"                 }             }         }     }); }); 





wiki

Comments

Popular posts from this blog

Jenkins: find build number for git commit -

firebase - How to wait value in Ionic 2 -

typescript - Typings for sub-folders inside a root index.d.ts -