mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-27 00:50:08 +00:00
2b5857f624
Bug: T255727 Depends-On: I388ac873997aa02d713ae7453216e0cb7d983993 Change-Id: Ie438db4f752c77aa40191d2bceb83f52d3371c6c
18 lines
1.1 KiB
TypeScript
18 lines
1.1 KiB
TypeScript
interface CheckboxHack {
|
|
updateAriaExpanded(checkbox: HTMLInputElement, button: HTMLElement): void;
|
|
bindUpdateAriaExpandedOnInput(checkbox: HTMLInputElement, button: HTMLElement): CheckboxHackListeners;
|
|
bindToggleOnClick(checkbox: HTMLInputElement, button: HTMLElement): CheckboxHackListeners;
|
|
bindToggleOnSpaceEnter(checkbox:HTMLInputElement, button:HTMLElement): CheckboxHackListeners;
|
|
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;
|
|
}
|