1 min read
HistoryQueriesSwitch
HistoryQueriesSwitch
History Queries Switch is a component to activate or deactivate the history queries. This component
emits events depending on the isEnabled
value.
Events
A list of events that the component will emit:
UserClickedEnableHistoryQueries
(opens new window): the event is emitted whenever the user clicks the switch and the history queries are deactivated.UserClickedDisableHistoryQueries
(opens new window): the event is emitted whenever the user clicks the switch when the history queries are activated and the list of history queries is not empty.UserClickedConfirmDisableHistoryQueries
(opens new window): the event is emitted whenever the user clicks the switch when the history queries are activated 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.