HistoryQueriesSwitch

HistoryQueriesSwitch

History Queries Switch is a component to enable or disable the history queries. This component emits events depending on the isEnabled value.

Events

A list of events that the component will emit:

  • UserClickedEnableHistoryQueries: the event is emitted whenever the user clicks the switch and the history queries are disabled.
  • UserClickedDisableHistoryQueries: the event is emitted whenever the user clicks the switch when the history queries are enabled and the list of history queries is not empty.
  • UserClickedConfirmDisableHistoryQueries: the event is emitted whenever the user clicks the switch when the history queries are enabled and the list of history queries is empty.

See it in action

Here you have a basic example of how the switch is rendered.

Try clicking it to see how it changes its state

Here you have a more complex example.

We are cookie-less

This is a cookie-free area. Who needs cookies when you can have trust? Feel free to browse our site and the only cookies you need to worry about are the edible kind.