Renovation
Search…
List Row Status
Add status indicators on ListView

Basic Usage

This is pretty straight forward. Provide a function that returns the status to be applied on each row.
1
core.bus.post({
2
id: "list_row_status",
3
data: {
4
// this function will be invoked on each row to get its status
5
fn: (core, row) => {
6
if (row.expired) {
7
return "Expired";
8
} else {
9
return "Active";
10
}
11
},
12
13
// What additional fields to get that may be useful for
14
// computing the status
15
include_fields: ["expired"]
16
}
17
});
Copied!
Copy link