Allows a user to preview or edit a JSON content in a dialog.

Basic usage

import { EditJsonDialogSettings, EditJsonDialogComponent } from '@alfresco/adf-core';

const settings: EditJsonDialogSettings = {
    title: 'Edit Json',
    editable: true,
    value: `{ "hello": "world" }`
};

this.dialog.open(EditJsonDialogComponent, {
    data: settings,
    minWidth: '50%',
    minHeight: '50%'
})
.afterClosed()
.subscribe((value: string) => {
    // do something with the updated value
});

© 2023 Alfresco Software, Inc. All Rights Reserved.