Shoelace Package

Package for Toddle.dev
Subscribe to updates
© 2025 Shoelace Package
Mar 13, 2025

Drawer and Dialog Events

Added the following events for drawer and dialog

sl-showEmitted when the dialog opens.

sl-after-showEmitted after the dialog opens and all animations are complete.

sl-hideEmitted when the dialog closes.

sl-after-hide
Emitted after the dialog closes and all animations are complete.

And a new attribute, prevent_close: When the user attempts to close the dialog by clicking the close button, clicking the overlay, or pressing Escape, the dialog will remain open if this attribute is set to true.