[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:
Denys Vuika
2019-09-20 07:26:37 +01:00
committed by GitHub
parent c15807a013
commit 90b2cee70d
31 changed files with 357 additions and 127 deletions

View File

@@ -51,7 +51,17 @@ Defines column properties for DataTable, Tasklist, Document List and other compo
| sortable | `boolean` | true | Toggles ability to sort by this column, for example by clicking the column header. |
| srTitle | `string` | | Title to be used for screen readers. |
| title | `string` | "" | Display title of the column, typically used for column headers. You can use the i18n resource key to get it translated automatically. |
| type | `string` | "text" | Value type for the column. Possible settings are 'text', 'image', 'date', 'fileSize', 'location', and 'json'. |
| type | `string` | "text" | Value type for the column. |
Supported `type` values:
- text
- image
- date
- icon
- fileSize
- location
- json (v3.4.0+)
## Details

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