changed to new functions
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s

This commit is contained in:
2026-04-22 12:06:34 +02:00
parent 5a5f593025
commit 59e6d972a8
125 changed files with 1934 additions and 2015 deletions

View File

@@ -184,14 +184,14 @@ Input({
const userId = $("123");
const userData = $(null);
Watch(userId, async (id) => {
watch(userId, async (id) => {
loading(true);
userData(await fetch(`/api/user/${id}`).then(r => r.json()));
loading(false);
});
// In template
If(() => userData(), () => Alert({ type: "success" }, userData()?.name))
when(() => userData(), () => Alert({ type: "success" }, userData()?.name))
```
### Modal with Confirm Action