contextmenu_state.svelte.ts view source
<T extends ContextmenuParams, U extends T | Array<T>>(params: U | null | undefined): Attachment<HTMLElement | SVGElement> Creates an attachment that sets up contextmenu behavior on an element.
params
Contextmenu parameters or nullish to disable
U | null | undefinedreturns
Attachment<HTMLElement | SVGElement>