2020-03-30 20:07:35 +00:00
|
|
|
interface CheckboxHack {
|
2020-06-29 19:23:48 +00:00
|
|
|
updateAriaExpanded(checkbox: HTMLInputElement, button: HTMLElement): void;
|
|
|
|
bindUpdateAriaExpandedOnInput(checkbox: HTMLInputElement, button: HTMLElement): CheckboxHackListeners;
|
2020-03-30 20:07:35 +00:00
|
|
|
bindToggleOnClick(checkbox: HTMLInputElement, button: HTMLElement): CheckboxHackListeners;
|
2020-07-09 20:33:25 +00:00
|
|
|
bindToggleOnSpaceEnter(checkbox:HTMLInputElement, button:HTMLElement): CheckboxHackListeners;
|
2020-03-30 20:07:35 +00:00
|
|
|
bindDismissOnClickOutside(window: Window, checkbox: HTMLInputElement, button: HTMLElement, target: Node): CheckboxHackListeners;
|
|
|
|
bindDismissOnFocusLoss(window: Window, checkbox: HTMLInputElement, button: HTMLElement, target: Node): CheckboxHackListeners;
|
|
|
|
bind(window: Window, checkbox: HTMLInputElement, button: HTMLElement, target: Node): CheckboxHackListeners;
|
|
|
|
unbind(window: Window, checkbox: HTMLInputElement, button: HTMLElement, listeners: CheckboxHackListeners): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface CheckboxHackListeners {
|
|
|
|
onUpdateAriaExpandedOnInput?: EventListenerOrEventListenerObject;
|
|
|
|
onToggleOnClick?: EventListenerOrEventListenerObject;
|
|
|
|
onDismissOnClickOutside?: EventListenerOrEventListenerObject;
|
|
|
|
onDismissOnFocusLoss?: EventListenerOrEventListenerObject;
|
|
|
|
}
|