Add string-export support for related-values and translations display (#13263)

* Add string preview handler for related values display

* Fix continue clause in for loop

* Add string export for translations display

* Handle null values better

* ... while making sure false/0/'' still is considered a value
This commit is contained in:
Rijk van Zanten
2022-05-12 15:40:38 -04:00
committed by GitHub
parent 519de95461
commit c3fbdbce99
4 changed files with 139 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ export interface DisplayConfig {
handler?: (
value: any,
options: Record<string, any>,
ctx: { interfaceOptions?: Record<string, any>; field?: Field }
ctx: { interfaceOptions?: Record<string, any>; field?: Field; collection?: string }
) => string | null | Promise<string | null>;
options:
| DeepPartial<Field>[]