about the use of setAttributes
hi,I saved an object in the custom property。
And I want to implement putting values into custom properties。
but It will cover the previous one

so, in the second case do you want to update the same data-info attribute with a new key, right?
since data-info has a string as a type value, first you need to get it and parse to an object.
const dataInfoObject = JSON.parse(this.model.get('data-info'))
after that, you can update the object with the new key
dataInfoObject[newKey] = newValue
and then you change it back to string and replace the attribute value for your model
this.model.set('data-info', JSON.stringfy(dataInfoObject))
let me know if it works
I thinks he's just looking for addAttributes
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.