Skip to main content

Function: extractTabNameFromButtonId()

function extractTabNameFromButtonId(
tabId: string,
options?: ExtractTabNameOptions
): string;

Defined in: utils/ui/tabs/tabIdUtils.ts:55

Extract tab name from a button ID for state updates.

Parameters​

tabId​

string

Tab button ID.

options?​

ExtractTabNameOptions = {}

Optional known tab names for guarded underscore parsing.

Returns​

string

Extracted tab name, or the original ID when it cannot be mapped.