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

# getCsvDelimiterState()

- 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.64/libs/sdk-model/src/exports/csvDelimiter.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).
> 

Resolves a delimiter value into its preset identifier and custom delimiter components.

Maps the delimiter to a preset when possible, otherwise sets the preset to `"custom"` and populates the custom delimiter field.

**Signature:**

```typescript
export declare function getCsvDelimiterState(delimiter?: string): {
    selectedPreset: CsvDelimiterPreset;
    customDelimiter: string;
};
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| delimiter | string | _(Optional)_ the persisted delimiter value (e.g. from workspace settings) |

**Returns:**

{ selectedPreset: [CsvDelimiterPreset](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.csvdelimiterpreset/index.md); customDelimiter: string; }
