<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseXAPI](./x-components.basexapi.md) &gt; [setInitCallback](./x-components.basexapi.setinitcallback.md)

## BaseXAPI.setInitCallback() method

Setter for the callback to call in the init method.

**Signature:**

```typescript
setInitCallback(initCallback: (config: SnippetConfig) => any): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  initCallback | (config: [SnippetConfig](./x-components.snippetconfig.md)<!-- -->) =&gt; any | The callback to call. |

**Returns:**

void

