Definition Formatters
Jump to navigation
Jump to search
Data formatters available in the definition are: Date (will convert to local user's date preference), Time (will convert to a 12/24hr clock) and Date Time. You can use formatters in:
- title definitions
- matchers
...
title: [
{
label: 'Start',
fieldPath: 'b3s__Start__c',
formatter: 'dateTime',
hideIfNull: false,
},
],
...
{
"label": "Created date",
"match": {
"field": "CreatedDate",
"formatter": "dateTime";
}
}
"match": {
"field": "Day_Type__c",
"equals": {
"Morning": {
"literal": "AM"
},
"Afternoon": {
"literal": "PM"
},
},
"otherwise": {
"literal": null
}
}
"match": {
"field": "Day_Type__c",
"formatter": "date",
"equals": {
"Morning": {
"targetField": "Start_Date__c"
},
"Afternoon": {
"targetField": "Placement__r.Start_Date__c"
}
},
"otherwise": {
"literal": null
}
}