mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-09-09 07:08:20 +00:00
feat: implement pre-selection for nationality and nation fields by repurposing the placeholder field to store default values
This commit is contained in:
@@ -104,6 +104,12 @@ export interface FormFieldConfig {
|
||||
label: Bilingual;
|
||||
type: FormFieldType;
|
||||
required?: boolean;
|
||||
/**
|
||||
* Hint text — except on NATIONALITY/NATION fields, where the builder puts
|
||||
* the pre-selected answer here (`en`, as the English demonym or country
|
||||
* name) and the wizard seeds it into the draft. The server stores it
|
||||
* unchanged either way, so this stays frontend-only.
|
||||
*/
|
||||
placeholder?: Bilingual;
|
||||
helpText?: Bilingual;
|
||||
options?: { value: string; label: Bilingual }[];
|
||||
|
||||
Reference in New Issue
Block a user