mirror of
https://github.com/tabler/tabler.git
synced 2026-07-16 10:31:41 +04:00
857988dd44
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
12 lines
362 B
TypeScript
12 lines
362 B
TypeScript
/*
|
|
Switch icons
|
|
*/
|
|
const switchesTriggerList: HTMLElement[] = [].slice.call(document.querySelectorAll<HTMLElement>('[data-bs-toggle="switch-icon"]'))
|
|
switchesTriggerList.map(function (switchTriggerEl: HTMLElement) {
|
|
switchTriggerEl.addEventListener('click', (e: MouseEvent) => {
|
|
e.stopPropagation()
|
|
|
|
switchTriggerEl.classList.toggle('active')
|
|
})
|
|
})
|