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
Post a Comment