mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4894] Json editor dialog (#5082)
* move download-zip to its own folder * json dialog * update docs * update test * disable e2e test * json widget for the Form * remove deprecated test * fix tests, update display text name
This commit is contained in:
32
docs/core/dialogs/edit-json.dialog.md
Normal file
32
docs/core/dialogs/edit-json.dialog.md
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
Title: Edit JSON Dialog
|
||||
Added: v3.5.0
|
||||
Status: Active
|
||||
Last reviewed: 2019-09-17
|
||||
---
|
||||
|
||||
# Edit JSON Dialog
|
||||
|
||||
Allows a user to preview or edit a JSON content in a dialog.
|
||||
|
||||
## Basic usage
|
||||
|
||||
```ts
|
||||
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
|
||||
});
|
||||
```
|
Reference in New Issue
Block a user