Copyright RoyalZSoftware 2024: Dynamic Form
Author: Alexander Panov panov@royalzsoftware.de
This is intended to be a micro library to create forms with select fields that change based on the selection of forms value
- A
formis not just the html form, but it also contains a state TODO - A
filter select fieldis a select field that triggers a reevaluation of the select options of all the select fields inside aform
- It should be simple
- There should be an attribute that creates a
form:dyn-form. - There should be an attribute that creates a
filter select field:dyn-filter - At form initialization it is expected that all select fields are rendered in the DOM.
- When one of the
filter select fields changes, then reevaluate the available options for all the select fields - To specify the property of an option, pass the
dyn-*attribute. - It is expected that all the options are rendered as inside the select fields at initialization time. Those will be hidden or shown depending on the filter.
