Item annotations and async methods #4

Merged
lmika merged 4 commits from feature/item-annotations into main 2025-11-04 03:30:44 +00:00
Showing only changes of commit 7718c0a0b8 - Show all commits

View file

@ -454,30 +454,4 @@ ui:bind "view.toggle-marked-items" "M" {
mark all mark all
} }
} }
proc _prep_officeCount {
openedOffices = 0
closedOffices = 0
async:query 'officeOpened=$v' [v:(av:true)] { |rs|
openedOffices = len $rs
async:query 'officeOpened=$u' [u:(av:false)] { |rs|
closedOffices = len $rs
ui:set-item-annotator { |rs item path|
if (eq $path.(-1) "officeOpened") {
if $item.officeOpened {
"Count = ${openedOffices}"
} else {
"Count = ${closedOffices}"
}
} else {
""
}
}
} -table business-addresses
} -table business-addresses
}
_prep_officeCount
` `