我在我的应用程序中使用离子选项卡,我想在选项卡按钮中使用图片。 我想动态设置此图片。离子2:使用标签按钮中的图片
在我的情况下,我有一个帐户与不同的用户链接到它。我想根据所选用户更改我的标签图片。
我有这样的:
,我想这一点:
我的代码在我的标签:
<ion-tabs tabsHighlight="false">
<ion-tab [root]="HomePage"
tabsHideOnSubPages="true"
tabIcon="checkbox"
tabTitle="A faire"
tabBadge="5"
tabBadgeStyle="notif">
</ion-tab>
<ion-tab [root]="ToComePage"
tabsHideOnSubPages="true"
tabIcon="time" tabTitle="A venir"
tabBadge="0"
tabBadgeStyle="notif">
</ion-tab>
<ion-tab [root]="HistoricPage"
tabsHideOnSubPages="true"
tabIcon="book"
tabTitle="Historique">
</ion-tab>
<ion-tab [root]="MenuPage"
tabsHideOnSubPages="true"
//I want to delete this tab Icon and replace it by a picture.
tabIcon="menu"
tabTitle="Menu">
</ion-tab>
</ion-tabs>
我不知道如何要做到这一点,一个想法?
请张贴一些代码,演示了试了一下。 –
我改变了我的帖子。我不知道你需要什么来更好地理解我想要做什么? –