shinyapps - How to use href in shiny notificationItem? -


dropdownmenu(type = "notifications",              notificationitem(                text = "profile updated",                icon("users"),href="#shiny-tab-attendance"               ),              notificationitem(                text = "new transport route",                icon("truck"),                status = "success"              ),              notificationitem(                text = "server maintainace",                icon = icon("exclamation-triangle"),                status = "warning"              ) ), 

where shiny-tab-attendance id of attendance tab? on clicking item not navigating tab. please help!!

find 1 way

creating notification item on server:

ddd=notificationitem(icon = icon("exclamation-triangle"), status = "danger",paste0("noti")) 

then change tags

ddd$children[[1]]=a(href="#shiny-tab-attendance","data-toggle"="tab", "data-value"="attendance",list(ddd$children[[1]]$children)) 

update

as @fabian gehring told there problem such method ( not work after navigation)

for other variant see


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -