In the backend business object, there is a custom attributes data structure that allows clients to add key/value pairs for storing in the database. For instance:
Map<String, String> customAttributes;
Here's an example of how it would look in the user interface (with the option to add more rows): https://i.sstatic.net/G5pfD.png
Inside the vue's data function, I have set a placeholder for this data:
data() {
return {
customAttributes: {},
...
}
However, I am struggling to find a way to connect the UI inputs to the customAttributes
object so that adding a new row (attribute) automatically adds a corresponding key and value to it.
Is there a different approach I could take to handle this situation?