[yew-devel] [PATCH proxmox-yew-comp v3 1/2] schema_validation: use Schema to populate field properties of number, check- and combobox
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Oct 10 12:46:28 CEST 2025
Am 10.10.25 um 10:32 schrieb Dietmar Maurer:
> partially applied.
>
> - setting placeholder is OK
>
> - setting tips from description is problematic, because those description are basically for developers and have no translations, so I think its not worth to do it.
>
> - setting field default values form schema default is most times not what you need (depends highly on your input form logic)
>
> - setting validator for Number makes no sense (schema.parse_simple_value() does not add any advantage, because values are already parsed - correct me if I am wrong)
>
> - auto-generating Combobox is usually not what we want, because we display translated, annotated items...
I agree with all of those points.
While re-using schema info is naturally great, it has a somewhat limited applications for frontend UI.
More information about the yew-devel
mailing list