UNPKG

@ulu/frontend

Version:

A framework-agnostic frontend toolkit providing a modular, tree-shakable library of accessible components and utilities. Designed for seamless integration, it features a highly configurable SCSS system for any environment and vanilla JavaScript modules op

14 lines 601 B
/** * Utility functions for dialogs * @module utils/dialog */ /** * Workaround for poor Safari support of the dialog 'toggle' event. * Watches for changes to the 'open' attribute and fires a callback. * * @param {HTMLDialogElement} dialog The dialog element to observe * @param {Function} callback Function to call when the open state changes. Receives boolean indicating open state. * @returns {Object} Object with a destroy method to disconnect the observer */ export function observeDialogToggle(dialog: HTMLDialogElement, callback: Function): Object; //# sourceMappingURL=dialog.d.ts.map