-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Very often for common input fields the apply/commit edi-functions are very boilerplate. Consider the following usual pattern:
target: "input[name=value]",
apply : (e,d,i)=>{ e.value = d.value },
commit: (e,d,i)=>{ d.value = e.value }
it could be useful to have a shortcut version which could even infer the assignments from the type of the DOM Element e and from the name of the input which needs to match the name of the key to access data object d..
As an example to be reasoned about:
target: "input[name=textinput]",
bind: auto /*auto for bidirectional, auto-apply or auto-commit for monodirectional binding*/
Metadata
Metadata
Assignees
Labels
No labels