eclipsesource / eclipsesource/jsonforms
empty data property
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 424
- Avg merge
- 17d 8h
- Merged PRs (30d)
- 1
Description
### Is your feature request related to a problem? Please describe.
Hi, I'd like to be able configure that If I remove some text from a control the property for that control is removed from the data object.
before editing
`this.data = {} `
some text
`this.data = { name: "sometext" } `
after removing the text from the control it stays like this
`this.data = { name: "" } `
I'd like to have some option to tell please delete this property from an object if it's empty.
The same problem is with arrays If I delete the last item from an array it stays like this
`this.data = { items: [] } `
### Describe the solution you'd like
To have an option which tells delete or not delete an empty property from an object.
### Describe alternatives you've considered
I have to do that manfully in my code at the moment.
### Framework
Angular
### RendererSet
Material
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.