eclipsesource / eclipsesource/jsonforms

empty data property

Open
#1,923 3 comments 1 reaction 0 assignees View on GitHub
angular material
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.