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

# getParameterTitle()

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.71/libs/sdk-model/src/ldm/metadata/parameter/index.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Returns the title to show for the parameter that `ref` points to: its title, its id when the title is empty, or the identifier of `ref` when the parameter is not known.

**Signature:**

```typescript
export declare function getParameterTitle(ref: ObjRef, parameter: IParameterMetadataObject | undefined): string;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| ref | [ObjRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.objref/index.md) | reference to the parameter, as stored by the object that uses it |
| parameter | [IParameterMetadataObject](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iparametermetadataobject/index.md) \| undefined | the parameter `ref` resolves to, or `undefined` |

**Returns:**

string

## Remarks

Backends send a missing title as an empty string, so an empty title counts as missing. Pass what the caller's catalog holds for `ref`, or `undefined` when it holds nothing (the parameter was deleted, is not accessible, or was not loaded). It takes any parameter kind, so every place that uses it shows a parameter under the same name.
