> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# newAttributeLocatorWithNullElement()

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: function
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/execution/base/sort.ts

Creates a new attribute locator for an attribute element that can be null.

**Signature:**

```typescript
export declare function newAttributeLocatorWithNullElement(attributeOrId: IAttribute | string, element: string | null): IAttributeLocatorItem;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| attributeOrId | [IAttribute](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iattribute/index.md) \| string | attribute, can be specified by either the attribute object or its local identifier |
| element | string \| null | attribute element value URI or primary label value, can be null |

**Returns:**

[IAttributeLocatorItem](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iattributelocatoritem/index.md)

new locator
