You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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*/
The text was updated successfully, but these errors were encountered:
Another possibility is to make the key of object d dynamic and not dependant on the name of e:
target: "input[name=textinput]",
autobind: "key" //would resolve for a input of type text to apply : (e,d)=>{ e.value = d["key"]}, commit : (e,d)=>{ d["key"] = e.value }
Alternatives are autobind for bidirectional binding, autoapply, autocommit for monodirectional binding.
Very often for common input fields the apply/commit edi-functions are very boilerplate. Consider the following usual pattern:
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:
The text was updated successfully, but these errors were encountered: