Dropdown that is actually a link to a tab.

dropdownTabDirect(
  type = c("messages", "notifications", "tasks"),
  tab_name,
  title,
  icon = NULL,
  .list = NULL,
  header = NULL
)

Arguments

type

A character vector of either "messages", "notifications", "tasks". Default is c("messages", "notifications", "tasks").

tab_name

The name of the tab to link to.

title

The title of the dropdown.

icon

The icon to use in the dropdown. If NULL, defaults will be set based on type.

.list

A list of items to add to the dropdown.

header

The header for the dropdown.

Value

A dropdown menu in the form of an HTML list, where clicking the dropdown directs to a specific tab.

Examples

dropdownTabDirect(type = "messages", tab_name = "Tab1", title = "Interesting tab")
#> <li class="dropdown messages-menu">
#>   <a href="#" onclick="shinyjs.tabSelect(&#39;Tab1&#39;)" data-tab-name="Tab1" class="dropdown-toggle" data-toggle="dropdown">
#>     <i class="far fa-envelope" role="presentation" aria-label="envelope icon"></i>
#>     Interesting tab
#>   </a>
#> </li>