@empathyco/x-components
Version:
Empathy X Components
55 lines (26 loc) • 831 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
<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)<!-- -->) => any
</td><td>
The callback to call.
</td></tr>
</tbody></table>
**Returns:**
void