@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 696 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseXAPI](./x-components.basexapi.md) > [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)<!-- -->) => any | The callback to call. |
**Returns:**
void