Get tab names from tabItem object.

get_tab_names(.tab)

Arguments

.tab

.tab The tabItem object.

Value

A vector of tab names.

Examples

if (FALSE) {
tab_object <- tabItems(
  tabItem(tabName = "tab1"),
  tabItem(tabName = "tab2"),
  tabItem(tabName = "tab3")
)
print(get_tab_names(tab_object))
# [1] "tab1" "tab2" "tab3"
}