Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PopupMenu

import type { PopupMenu } from "https://raw.githubusercontent.com/scrapbox-jp/types/0.3.3/userscript.ts";

window.scrapboxに露出しているPopupMenuの型

interface PopupMenu {
addButton: (button: {
title: string | ((text: string) => (string | undefined));
onClick: (text: string) => (string | undefined);
}
) => void
;
}

§Properties

§
addButton: (button: {
title: string | ((text: string) => (string | undefined));
onClick: (text: string) => (string | undefined);
}
) => void
[src]

Add a popup button