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
Post a Comment