Item for above dropdownActionMenu function.

taskItemTab(text, tab_name = NULL, href = NULL, tabSelect = FALSE)

Arguments

text

The text to display for the item.

tab_name

The name of the tab to link to. Default is NULL.

href

The href link for the item. If NULL, it defaults to "#".

tabSelect

A boolean indicating whether to select the tab. Default is FALSE.

Value

An HTML list item.

Examples

taskItemTab(text = "Selected tab", tab_name = "Tab1", tabSelect = TRUE)
#> <li>
#>   <a onclick="shinyjs.tabSelect(&#39;Tab1&#39;)" data-tab-name="Tab1">Selected tab</a>
#> </li>
taskItemTab(text = "Other tab", tab_name = "Tab2", tabSelect = FALSE)
#> <li>
#>   <a href="#">
#>     <h3>Other tab</h3>
#>   </a>
#> </li>