grid-tabulator.getdatatestid
Home > @genesislcap/grid-tabulator > getDataTestId
getDataTestId() function
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Resolves a dataTestId value that can be either a string or a function
Signature:
export declare function getDataTestId<T = any>(dataTestId: ((rowData: T) => string) | string | undefined, rowData: T): string | undefined;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
dataTestId |
((rowData: T) => string) | string | undefined |
The dataTestId value (string or function) |
|
rowData |
T |
The row data to pass to the function if dataTestId is a function |
Returns:
string | undefined
The resolved test ID string or undefined if not provided