UNPKG

orxapi.tools.toggle

Version:

The TypeScript toggle tools library for orxapi

12 lines (11 loc) 1.19 kB
import type { ToggleOptions, ToggleLinksOptions } from "./types"; declare function toggleLink(element: HTMLElement, opts?: Omit<Partial<ToggleLinksOptions>, "collapsible">): void; declare function toggleLinks(elementList: NodeListOf<HTMLElement> | HTMLElement[], index: number, opts?: Partial<ToggleLinksOptions>): void; declare function resetToggleLinks(elementList: NodeListOf<HTMLElement> | HTMLElement[], opts?: Omit<Partial<ToggleLinksOptions>, "collapsible">): void; declare function toggleSwitch(element: HTMLElement, opts?: Partial<ToggleOptions>): void; declare function toggleText(element: HTMLElement, opts?: Partial<ToggleOptions>): void; declare function toggleIcon(element: HTMLElement, opts?: Partial<ToggleOptions>): void; declare function toggleDisabled(element: HTMLElement, opts?: Partial<ToggleOptions>): void; declare function getToggleTargetElement(element: HTMLElement, dataName?: string): HTMLElement; declare function isToggleTargetActivated(element: HTMLElement, toggleClassName?: string): boolean; export { toggleLink, toggleLinks, resetToggleLinks, toggleSwitch, toggleText, toggleIcon, toggleDisabled, getToggleTargetElement, isToggleTargetActivated, };