i want to show on this icon our custom app count notification and today events number.
@Divakar_Jadoun1 In the navbar, like the notifications icon? If yes, then you can achieve what you want using the following JavaScript code.
$('header.navbar > .container > .navbar-collapse > ul').prepend(`
<li class="nav-item dropdown dropdown-notifications dropdown-mobile" title="Icon Title">
${frappe.utils.icon('small-icon', 'md')}
<span class="badge" id="icon-count"></span>
</li>
`);
(The code is taken from somewhere I can’t remember)
Then you can update the badge like this:
$('#icon-count').text('10');