mirror of
https://github.com/hulthe/inkopslista.git
synced 2026-08-03 23:11:28 +02:00
implemented amounts in gui
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
export struct SItem {
|
||||
name: string,
|
||||
checked: bool,
|
||||
amount: int,
|
||||
}
|
||||
|
||||
export global State {
|
||||
@@ -13,6 +14,8 @@ export global State {
|
||||
callback add-to-list(string);
|
||||
callback check-item(string);
|
||||
callback delete-checked();
|
||||
callback inc-amount(string);
|
||||
callback dec-amount(string);
|
||||
in-out property <string> server-address;
|
||||
callback set-server-address(string);
|
||||
set-server-address(address) => {
|
||||
|
||||
Reference in New Issue
Block a user