This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @example | |
| * ```ts | |
| * const textInput = document.querySelector<HTMLInputElement>('input[type="text"]'); | |
| * textInput.addEventListener('keydown', debounce(fetchSuggestions, 300)); | |
| * ``` | |
| * | |
| * @param {T} callback - The callback function to be debounced. | |
| * @param number delay - the delay in milliseconds | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div | |
| {{ attributes.defaults(stimulus_controller('popover')) }} | |
| data-live-name="{{ this.key }}" | |
| > | |
| <button | |
| data-popover-target="trigger" | |
| type="button" | |
| aria-haspopup="dialog" | |
| aria-expanded="{{ this.open ? 'true' : 'false' }}" | |
| aria-controls="{{ this.key }}" |