All docs
V19.2
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

findItemForApi<T>(dashboard, itemName) Function

Declaration

export function findItemForApi<T extends DashboardItem>(dashboard: Dashboard, itemName: string, expectedItemClass?: any): T

Parameters

Name Type Description
dashboard Dashboard
itemName string

Optional Parameters

Name Type Default Description
expectedItemClass any null

Returns

Type Description
T

Type Parameters

Name Description
T