Update new functions

This commit is contained in:
2026-04-06 03:19:15 +02:00
parent f9095332eb
commit 294547fc56
139 changed files with 2249 additions and 2109 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))
If(() => userData(), () => Alert({ type: "success" }, userData()?.name))
```
### Modal with Confirm Action