你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/482771-malayala-kit,源站連結 點此以跳轉。
MalayalaKit: JavaScript library for creating customizable web menus with tabs, buttons, switches, and input elements.
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.org.cn/scripts/482771/1313161/Malayala%20Kit.js
MalayalaKit is a lightweight JavaScript library designed to facilitate the creation of customizable and interactive menus for web applications. It offers a simple and intuitive API for constructing menus with tabs, buttons, switches, and input elements. The library provides a set of predefined styles for a sleek and modern appearance.
Key Features:
The library's design allows developers to quickly integrate and configure menus within their web projects. It includes built-in styling for a visually appealing experience, but developers can also customize the appearance to suit their application's design.
To use MalayalaKit, developers can instantiate a menu, add tabs with associated content, and include buttons, switches, and input elements within each tab. The library simplifies the process of creating dynamic and responsive menus for web applications.
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: "Show All Toasts", buttonLabel: "Buton Text", onclick: function () {
toastManager.showToast({ message: 'Bu birinci tost!', duration: 5000});
toastManager.showToast({ message: 'Bu birinci tost!' });
toastManager.showToast({ message: 'Bu birinci tost!', type: 'info' });
toastManager.showToast({ message: 'Bu birinci tost!', type: 'warning' });
toastManager.showToast({ message: 'Bu birinci tost!', type: 'error' });
}
});
general.addButton({ label: "Button Label", style: "border", buttonLabel: "Buton Text", onclick: function () {
toastManager.showToast({ message: 'Clicked', type: 'info' });
}
});
general.addSwitch({ label: "Switch Label", value: true, onchange: function (value) {
toastManager.showToast({ message: 'Clicked' + value, type: 'info' });
}
});
general.addInput({ label: "Number Input", placeholder: "Enter a Number", type: "number", value: 0, onchange: function (value) {
toastManager.showToast({ message: 'Clicked' + value, type: 'info' });
}
});
general.addHotkey({
label: "Hotkey",
value: { keyCode: 77, ctrlKey: true, altKey: false, shiftKey: false },
onlistener: function (event) {
toastManager.showToast({ message: 'Clicked' + event, type: 'info' });
}
});
kit.addTab(general);
var tab2 = new MalayalaKit.Tab("Tab 2");
tab2.addButton({ buttonLabel: "Hide", onclick: function () {
kit.toggleMenu();
}
});
kit.addTab(tab2);
MalayalaKit.setLanguage('ml'); // Supported languages: en, tr, ml, ta, hi, ko, ja, it, ar, fr
kit.render();