@serenity-is/corelib / TabsExtensions / toggle
Function: toggle()
toggle(
tabs,tabKey,visible):void
Defined in: src/ui/helpers/tabsextensions.tsx:65
Shows or hides a tab.
Parameters
tabs
The tabs element (or array-like of elements).
HTMLElement | ArrayLike<HTMLElement>
tabKey
The tab key or index.
string | number
visible
boolean
Whether the tab should be visible.
Returns
void