mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 23:55:53 +00:00
17 lines
1,019 B
TypeScript
17 lines
1,019 B
TypeScript
|
interface CheckboxHack {
|
||
|
updateAriaExpanded(checkbox: HTMLInputElement): void;
|
||
|
bindUpdateAriaExpandedOnInput(checkbox: HTMLInputElement): CheckboxHackListeners;
|
||
|
bindToggleOnClick(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;
|
||
|
}
|