Customizing ArrayField template to control numbers of items per row (in a json schema stardardish way)

This commit is contained in:
ewandor committed 2025-05-03 19:56:27 +02:00
1 parent e7a4389fde
commit 32ce981d40
6 files changed
+107 -5

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ class Individual(EntityType):
lastname: Indexed(str) = Field(title='Nom de famille')
surnames: List[Indexed(str)] = Field(
default=[],
props={"items-per-row": "4", "numbered": True},
props={"items_per_row": "4", "numbered": True},
title="Surnoms"
)
day_of_birth: Optional[date] = Field(default=None, title='Date de naissance')