jsscrapbox.PopupMenu.addButton({
title: 'test',
onClick: text => {
}
});
title
(必須) (selection: string) => string
という関数を指定することもできる selection
に選択中の文字列が入る undefined
を返すとボタンを押せなくなる onClick
(必須) (selection: string) => string | undefined
selection
に選択中の文字列が入る undefined
の場合は何もしない