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
How to completely delete non-required object from existing object? Is it possible to show "Delete" button to let used kill complete branch? For example, if user wants to delete optional banner from the example above.
I have idea to wrap optional objects with array where 0-1 items are allowed to use array's Delete button. But it will will bring rubbish into editable data model.
json-editor version: 2.8.0
Expected behavior
"Delete" button in the header of the non-required object.
General information
I'm using json-editor for editing my landing page config: create config; turn on/off section, edit fields in existing config.
There are two problems in usage of json-editor as composite objects editor:
Add non-required field/object to existing object. I'm using my PR to be able to do that: Option for editing of undefined non-required fields (bug with tables of objects) #980
How to completely delete non-required object from existing object? Is it possible to show "Delete" button to let used kill complete branch? For example, if user wants to delete optional
banner
from the example above.I have idea to wrap optional objects with array where 0-1 items are allowed to use array's Delete button. But it will will bring rubbish into editable data model.
Expected behavior
"Delete" button in the header of the non-required object.
Actual behavior
No such button.
Steps to reproduce the behavior
Direct link to example: https://json-editor.github.io/json-editor/?data=N4Ig9gDgLglmB2BnEAuUMDGCA2MBGqIAZglAIYDuApomALZUCsIANOHgFZUZQD62ZAJ5gArlELwwAJzplsrEIgwALKrNShYUbFUIAZMvAAmMeAHMFUQRF0p2XHgsiwEyNIuVgKvSfF5SqAEcRGACjXioTKGk3KCkRKjYTRDI8HV4sbAEIRFsiOVyAXzYA4NDI1ABtEAZyBVM4sCMRDF0AXTYIKUgqKVgaDRAYI0GrGwkROjxeyxhtWxAASQARJ2g4JEHlYaMqeFQ4hOKQXfyRbHE7EGPaslHrBbBObnE2LR1CAGUAUQB5AAJbv9TCQFKUQmEqiAANZUQQUaRGZBJGgYKQwdYIWbzEAdcCYzbuTLZXIjOyHXRsRCeby+fxBCGRCJRGIHeJUY5dHp9GADdzvWyaB6ERBxUwWN5zD52AAKZDMVH+AoUdFMej2ZigylQAEYAAxsWQAD3V5i1qAATIwAGxsZwbNzoeAQMQAQSgYrwYj5TpdUHdnu9jpAEAErU82F2UkIAHVpND/iQ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gY5BRtBkOoaiciQAyAOAZx2i3Fg1khAko0cFeAOBaAVl2RciUhI1QkshkE8gOiBjpi2p0c+QKRJjBjo0BUQl4kyRaiTg9ENiY0AhERCI9jFigkti0jdgdAUlsi+i2AI0LitFY0SiOiY0sdGg3FeAbFej3F9ipiniQlrjP8o05BsB/AvBA17j/jDjLj0ii1tx+Bt8+BugKBfiORCggA===
The text was updated successfully, but these errors were encountered: