egroupware_official/api/js/etemplate/Et2TreeWidget/MailTree.ts

13 lines
347 B
TypeScript
Raw Normal View History

2023-08-23 09:34:00 +02:00
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;
}