Add a parameter to prevent close panel when clicking outside.

This commit is contained in:
Dayo 2023-01-12 00:20:46 +01:00
commit 8139a49304
5 changed files with 390 additions and 246 deletions

View file

@ -42,6 +42,12 @@ export interface HeaderActionProps
* @default { duration: 200 }
*/
transition?: false | import("svelte/transition").SlideParams;
/**
* Set to `true` to prevent the panel from closing when clicking outside
* @default false
*/
preventCloseOnClickOutside?: boolean;
}
export default class HeaderAction extends SvelteComponentTyped<