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.
Did you find this topic helpful?