Menu
์ ์ด๋ฅผ ์กฐ๊ฑด๋ณ๋ก ๋ด์ ์ ์๋ MenuBoard
๋ก ๋๋ฉ๋๋ค. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@sj-js/menuman/dist/css/menuman.min.css">
<script src="https://cdn.jsdelivr.net/npm/@sj-js/crossman/dist/js/crossman.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@sj-js/menuman/dist/js/menuman.min.js"></script>
<script>
var menuman = new MenuMan();
</script>
npm install @sj-js/menuman
require('@sj-js/menuman/dist/css/menuman.css');
const MenuMan = require('@sj-js/menuman');
const menuman = new MenuMan();
For convenience, 1-1 code, which loads and creates a Library in the example, is omitted.
.setTheme(CODE)
menuman.setTheme('default');
.addMenu(ID, LABEL, EVENT)
menuman.addMenu();
menuman.addMenu('MENU_ID_1', 'MENU_LABEL', function(element){
//SOMETHING TO DO
});
menuman.addMenu('MENU_ID_2', 'MENU_LABEL', function(element){
//SOMETHING TO DO
});
.addMenuBoard(ID, CONDITION, MENU_ID_LIST)
menuman.addMenuBoard('BOARD_ID_1', {'id':'icon-*'}, ['MENU_ID_1', 'MENU_ID_2']);
๐จโ๐ป