Eugenio Romano 3dc92beeb9
Review documentation plus some tools fix (#5100)
* review 3.5.0 doc

* fix documentation

* fix documentation

* fix documentation
2019-09-26 10:27:04 +01:00

638 B

Title, Added, Status, Last reviewed
Title Added Status Last reviewed
Edit JSON Dialog v3.5.0 Active 2019-09-17

Edit JSON Dialog

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
});