Files
t/ts/main.ts

30 lines
687 B
TypeScript
Raw Normal View History

2024-12-21 07:26:27 -08:00
import { ElemWrapper } from "./elemwrapper";
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");
tasksTab
.add(
"sl-icon",
"name", "slash-circle",
"style", "font-size: 20px",
);
2024-12-21 07:17:19 -08:00
2024-12-21 21:42:54 -08:00
const [tagsTab, tagsPanel] = tabGroup.addTabSet("tags");
tagsTab
.add(
"sl-icon",
"name", "tags",
"style", "font-size: 20px",
);
}
2024-12-21 06:35:49 -08:00
2024-12-21 06:58:13 -08:00
document.addEventListener("DOMContentLoaded", main);