@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 775 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [HistoryQueriesActions](./x-components.historyqueriesactions.md) > [toggleHistoryQueries](./x-components.historyqueriesactions.togglehistoryqueries.md)
## HistoryQueriesActions.toggleHistoryQueries() method
Toggles the history queries and stores the state in the browser storage. It also cleans the history queries when disabling them.
**Signature:**
```typescript
toggleHistoryQueries(isEnabled: boolean): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| isEnabled | boolean | Whether to enable or disable the history queries. |
**Returns:**
void