Hello,
Is there any example of adding a badge in the vue sidebar for all pages and the count will be from the API call?
I saw an example in the HTML demo in Inbox > Messages menu, I want the same as that.
Hi,
Since Vue 3 bootstrap 5 isn't released officially in we are using a plain bootstrap 5, you can add badges in the same way as we are doing this in the HTML version.
<span class="menu-badge">
<span class="badge badge-success">3</span>
</span>
Hello,
Thank you for the quick response, I have integrated mentioned badge but I am facing an issue with updating count when a record gets deleted from the listing page it is not dynamically getting updated so is there any way where I can refresh badge count also?
I think you can use a vuex state to share values between a few different components.
Check vuex official doc:
https://vuex.vuejs.org/