Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/smabpro.picotech.app/public_html/public/assets/js/pages/ drwxr-xr-x |
Viewing file: Select action/file-type: 'use strict'; // [ html-demo ] const main = document.querySelector('#tree-demo'); const info = document.querySelector('#tree-msg'); const tree = new VanillaTree(main, { contextmenu: [{ label: 'Hey', action: function (id) { alert('Hey ' + id); } }, { label: 'Blah', action: function (id) { alert('Blah ' + id); } }] }); tree.add({ label: 'Label A', id: 'a', opened: true }); tree.add({ label: 'Label B', id: 'b' }); tree.add({ label: 'Label A.A', parent: 'a', id: 'a.a', opened: true, selected: true }); tree.add({ label: 'Label A.A.A', parent: 'a.a' }); tree.add({ label: 'Label A.A.B', parent: 'a.a' }); tree.add({ label: 'Label B.A', parent: 'b' }); main.addEventListener('vtree-open', function (evt) { info.innerHTML = evt.detail.id + ' is opened'; }); main.addEventListener('vtree-close', function (evt) { info.innerHTML = evt.detail.id + ' is closed'; }); main.addEventListener('vtree-select', function (evt) { info.innerHTML = evt.detail.id + ' is selected'; }); |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0035 ]-- |