Skip to Content
0
Former Member
Aug 01, 2016 at 11:42 AM

Invalid aggregation for NavigationListItem

880 Views

I am trying to place a switch control inside a NavigationListItem:

<tnt:NavigationListItem text="Open Street Map">

<HBox>

<Switch name="osm" state="false">

</Switch>

<Label text="Open Street Map" class="sapUiSmallMarginBottom"/>

</HBox>

</tnt:NavigationListItem>

I get the error saying that:

Uncaught Error: "Element sap.m.HBox#__hbox0" is not valid for aggregation "items" of Element sap.tnt.NavigationListItem#__item0