newAttributeLocator()
Home > @gooddata/sdk-model > newAttributeLocator
newAttributeLocator() function
Creates a new attribute locator for an attribute element.
Signature:
export declare function newAttributeLocator(attributeOrId: IAttribute | string, element: string): IAttributeLocatorItem;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| attributeOrId | IAttribute | string | attribute, can be specified by either the attribute object or its local identifier | 
| element | string | attribute element value URI or primary label value | 
Returns:
new locator