Skip to Content

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

IconTabBar - issue with replacing sap icon with custom image


I'm using IconTabBar and for IconTabFilter, I'm replacing the icon : "sap-icon://hint" with my custom image. Custom Image is displaying in place of icon But, clicking on that, tab select functionality is not working.

But it is working with sap-icon://hint or with text also. Any one please suggest me how to replace the sap-icon with custom image and the tab select functionality.

Below is my code.

this.tabBar = new sap.m.IconTabBar({

        expanded : "{device>/isNoPhone}",

            items: [

              new sap.m.IconTabFilter({

            key: "MyHistory",

              icon: "img/history-gray.png",

              text : "My History",


              new sap.m.IconTabFilter({

            key: "MyWatchList",

            icon: "img/watch-list.png",

            text : "My Watch List",



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