CAI Universal Toolbelt Menu

Reusable menu structure for various c.ai TM scripts that require a menu

Ekde 2023/05/11. Vidu La ĝisdata versio.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/466064/1189172/CAI%20Universal%20Toolbelt%20Menu.js

Aŭtoro
notdoingthateither
Versio
0.0.1.20230511170002
Kreita
2023/05/11
Ĝisdatigita
2023/05/11
Licenco
MIT

Usage:

const ctm = CAIToolMenu();
const btn = ctm.newButton();
btn.innerHTML = 'Do';
btn.onclick = () => {
  console.log('It's doing stuff');
}