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:
@@ -17,9 +17,21 @@
|
||||
|
||||
import { TemplateRef } from '@angular/core';
|
||||
|
||||
export interface DataColumnTypes {
|
||||
text: string;
|
||||
image: string;
|
||||
date: string;
|
||||
json: string;
|
||||
icon: string;
|
||||
fileSize: string;
|
||||
location: string;
|
||||
}
|
||||
|
||||
export type DataColumnType = keyof DataColumnTypes;
|
||||
|
||||
export interface DataColumn {
|
||||
key: string;
|
||||
type: string; // text|image|date
|
||||
type: DataColumnType;
|
||||
format?: string;
|
||||
sortable?: boolean;
|
||||
title?: string;
|
||||
@@ -28,4 +40,5 @@ export interface DataColumn {
|
||||
template?: TemplateRef<any>;
|
||||
formatTooltip?: Function;
|
||||
copyContent?: boolean;
|
||||
editable?: boolean;
|
||||
}
|
||||
|
@@ -16,13 +16,13 @@
|
||||
*/
|
||||
|
||||
import { TemplateRef } from '@angular/core';
|
||||
import { DataColumn } from './data-column.model';
|
||||
import { DataColumn, DataColumnType } from './data-column.model';
|
||||
|
||||
// Simple implementation of the DataColumn interface.
|
||||
export class ObjectDataColumn implements DataColumn {
|
||||
|
||||
key: string;
|
||||
type: string; // text|image
|
||||
type: DataColumnType;
|
||||
format: string;
|
||||
sortable: boolean;
|
||||
title: string;
|
||||
|
Reference in New Issue
Block a user