Renovation
Search…
Renovation
1.1.0
Overview
Introduction
Getting Started with Renovation
Under Construction 🛠
Frappe App [renovation_core]
Introduction
Core SDK TS/JS
Getting started
.auth
.default
.meta
.model
.perm
.storage
.translate
Errors
Core SDK Dart/Flutter
Getting started
.auth
.default
.meta
.model
.perm
.storage
.translate
Renovation-CMS
Sidebar
Dashboard
Renovation Script
Custom Dialog
Form Custom Button
Spinners / Loaders
Routing
Form Custom Dashboard
Link Field Custom Queries
List Row Status
Nginx Configuration
Powered By
GitBook
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!
Previous
Link Field Custom Queries
Next - Renovation-CMS
Nginx Configuration
Last modified
1yr ago
Copy link