Files
t/ts/main.ts

19 lines
536 B
TypeScript
Raw Normal View History

2024-12-21 07:26:27 -08:00
import { ElemWrapper } from "./elemwrapper";
2024-12-21 21:49:43 -08:00
import { SLIcon } from "./slicon";
2024-12-21 21:42:54 -08:00
import { SLTabGroup } from "./sltabgroup";
2024-12-21 07:17:19 -08:00
2024-12-21 07:26:27 -08:00
async function main() {
2024-12-21 07:17:19 -08:00
const root = new ElemWrapper(document.body);
2024-12-21 21:42:54 -08:00
const tabGroup = new SLTabGroup();
root.append(tabGroup);
2024-12-21 07:17:19 -08:00
2024-12-21 21:42:54 -08:00
const [tasksTab, tasksPanel] = tabGroup.addTabSet("tasks");
2024-12-21 21:49:43 -08:00
tasksTab.append(new SLIcon("slash-circle"));
2024-12-21 07:17:19 -08:00
2024-12-21 21:42:54 -08:00
const [tagsTab, tagsPanel] = tabGroup.addTabSet("tags");
2024-12-21 21:49:43 -08:00
tagsTab.append(new SLIcon("tags"));
2024-12-21 21:42:54 -08:00
}
2024-12-21 06:35:49 -08:00
2024-12-21 06:58:13 -08:00
document.addEventListener("DOMContentLoaded", main);