Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

2nd level in navigationbar

Hi All,

When using the NavigationBar (sap.ui.ux3.NavigationBar), there's a possibility to add subItems to the navigationitems. I just can't figure out how to make those subItems visible. Some help from this community would be greatly appreciated.

My code looks like this:

createContent : function(oController) {

        var oNavBarMain = new sap.ui.ux3.NavigationBar({

            items:[

                new sap.ui.ux3.NavigationItem({ 

                        key:"material",

                        text:"Artikel",

                        subItems: [

                            new sap.ui.ux3.NavigationItem({key:"createMat", text:"Aanmaken"}),

                            new sap.ui.ux3.NavigationItem({key:"searchMat", text:"Zoeken"})

                                ]

                }),

                new sap.ui.ux3.NavigationItem({

                        key:"master",

                        text:"Master data",

                        subItems: [

                            new sap.ui.ux3.NavigationItem({key:"supplier", text:"Update leveranciers"}),

                            new sap.ui.ux3.NavigationItem({key:"templates", text:"Update templates"}),

                        ]

                }),

                new sap.ui.ux3.NavigationItem({key:"admin", text:"Administratie"}),

                new sap.ui.ux3.NavigationItem({key:"report", text:"Rapportage"})        

            ],

            select: function(oEvent) {

                oController.handleNavBarSel(oEvent);

                }

        });

    return oNavBarMain;

Could somebody please help me with this second level?

kind regard, John

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question