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
Send messages to the UI that create a surface with an interactive TextField component backed by a data model. The user then types into the text field. When and how should the data model be updated?
Possible solutions:
With every keystroke a new data-model-update message should be created that keeps the data model completely in sync with what is seen in the UI.
Don't do anything necessarily. The UI may become out of sync with the data model. Another action like a Save button could then get the UI in sync with the data model.
I saw this in the spec:
4.1. The dataModelUpdate Message¶
This message is the only way to modify the client's data model.
so perhaps the answer is #1. In that case the other UI elements such as check boxes and sliders should create dataModelUpdate messages with every interaction as well.
Or maybe the answer is that it doesn't matter to A2UI and the render can decide for itself what to do.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Send messages to the UI that create a surface with an interactive TextField component backed by a data model. The user then types into the text field. When and how should the data model be updated?
Possible solutions:
I saw this in the spec:
so perhaps the answer is #1. In that case the other UI elements such as check boxes and sliders should create dataModelUpdate messages with every interaction as well.
Or maybe the answer is that it doesn't matter to A2UI and the render can decide for itself what to do.
Beta Was this translation helpful? Give feedback.
All reactions