| 1 | interface CheckboxHack { |
| 2 | updateAriaExpanded(checkbox: HTMLInputElement, button: HTMLElement): void; |
| 3 | bindUpdateAriaExpandedOnInput(checkbox: HTMLInputElement, button: HTMLElement): CheckboxHackListeners; |
| 4 | bindToggleOnClick(checkbox: HTMLInputElement, button: HTMLElement): CheckboxHackListeners; |
| 5 | bindToggleOnSpaceEnter(checkbox:HTMLInputElement, button:HTMLElement): CheckboxHackListeners; |
| 6 | bindDismissOnClickOutside(window: Window, checkbox: HTMLInputElement, button: HTMLElement, target: Node): CheckboxHackListeners; |
| 7 | bindDismissOnFocusLoss(window: Window, checkbox: HTMLInputElement, button: HTMLElement, target: Node): CheckboxHackListeners; |
| 8 | bind(window: Window, checkbox: HTMLInputElement, button: HTMLElement, target: Node): CheckboxHackListeners; |
| 9 | unbind(window: Window, checkbox: HTMLInputElement, button: HTMLElement, listeners: CheckboxHackListeners): void; |
| 10 | } |
| 11 | |
| 12 | interface CheckboxHackListeners { |
| 13 | onUpdateAriaExpandedOnInput?: EventListenerOrEventListenerObject; |
| 14 | onToggleOnClick?: EventListenerOrEventListenerObject; |
| 15 | onDismissOnClickOutside?: EventListenerOrEventListenerObject; |
| 16 | onDismissOnFocusLoss?: EventListenerOrEventListenerObject; |
| 17 | } |