egroupware_official/api/js/etemplate/Et2TreeWidget/MailTree.ts
2023-09-14 17:36:28 +02:00

13 lines
347 B
TypeScript

import {Et2Tree} from "./Et2Tree";
export function initMailTree(): Et2Tree {
const changeFunction = () => {
console.log("change"+tree)
}
const tree: Et2Tree = document.querySelector("et2-tree");
tree.selection = "single";
tree.addEventListener("sl-selection-change", (event)=>{console.log(event)})
return tree;
}