Greasy Fork is available in English.

Malayala Kit

MalayalaKit: JavaScript library for creating customizable web menus with tabs, buttons, switches, and input elements.

Versão de: 20/12/2023. Veja: a última versão.

Este script não deve ser instalado diretamente. Este script é uma biblioteca de outros scripts para incluir com o diretório meta // @require https://update.greasyfork.org/scripts/482771/1299277/Malayala%20Kit.js

Autor
garticio
Versão
0.0.1.20231220180351
Criado
20/12/2023
Atualizado
20/12/2023
Licença
N/A

Example

var kit = new MalayalaKit.CreateMenu({
    title: "MalayalaKit",
    icon: "",
    size: { width: 500, height: 400 },
    position: { top: 50, left: 50 },
    hotkey: { keyCode: 77, ctrlKey: true, altKey: false, shiftKey: false }
});

var general = new MalayalaKit.Tab("General");
general.addButton({ label: "Button Label", buttonLabel: "Buton Text", onclick: function () {
        alert("Clicked");
    }
});
general.addSwitch({ label: "Switch Label", value: true, onchange: function (value) {
        alert("Switch value: " + value);
    }
});
kit.addTab(general);

var tab2 = new MalayalaKit.Tab("Tab 2");
tab2.addButton({ buttonLabel: "Hide", onclick: function () {
        kit.toggleMenu();
    }
});
kit.addTab(tab2);

kit.render();