idk what I did last

This commit is contained in:
Ide
2026-06-12 19:24:39 +02:00
parent c00e3205cd
commit b3dd373403
6 changed files with 147 additions and 13 deletions
+9
View File
@@ -4,6 +4,10 @@ export struct SItem {
amount: int,
}
export struct SButtonItem{
name: string,
category: string}
export global State {
in-out property <[SItem]> list: [
{ name: "Test 1", checked: true },
@@ -17,6 +21,11 @@ export global State {
callback inc-amount(string);
callback dec-amount(string);
in-out property <string> server-address;
in property <[SButtonItem]> favorites: [
{ name: "mjölk", category: "kyl" },
{ name: "ost", category: "kyl" },
];
callback set-server-address(string);
set-server-address(address) => {
server-address = address;