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"
)
),
发光标签出勤是出勤标签的ID?单击该项时,它不会导航到此选项卡。请帮忙!!
答案 0 :(得分:1)
找到一种方式
在服务器上创建通知项目:
ddd=notificationItem(icon = icon("exclamation-triangle"), status = "danger",paste0("noti"))
然后更改标签
ddd$children[[1]]=a(href="#shiny-tab-attendance","data-toggle"="tab", "data-value"="attendance",list(ddd$children[[1]]$children))
正如@Fabian Gehring所说,这种方法存在问题(导航后无法正常工作)