<!-- 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

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

initCallback


</td><td>

(config: [SnippetConfig](./x-components.snippetconfig.md)<!-- -->) =&gt; any


</td><td>

The callback to call.


</td></tr>
</tbody></table>

**Returns:**

void

