I am customising my context menu in the filemanager component (svelte) and I want to add some custom options to my context menu and also be able to intercept this custom event, is this possible somehow? Example:
switch (mode) {
case "body":
return [
{
icon: "wxi-content-paste",
text: "Paste",
hotkey: "Ctrl+V",
id: "paste",
},
{
icon: "wxi-content-custom",
text: "Custom",
id: "custom",
},
]
and then:
api.intercept('custom', async (ev) => { ... }