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

This commit is contained in:
2025-05-03 19:56:27 +02:00
parent e7a4389fde
commit 32ce981d40
6 changed files with 107 additions and 5 deletions

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')