mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4394]Add two more tests on copyContent (#4630)
* Add two more tests * Update data-table-component.page.ts * Fix lint issues
This commit is contained in:
committed by
Eugenio Romano
parent
6e4adfb09a
commit
b58e040d7e
@@ -18,6 +18,7 @@
|
||||
<data-column key="id" title="Id" [copyContent]="true"></data-column>
|
||||
<data-column key="name" title="Name" class="adf-full-width name-column" [copyContent]="false"></data-column>
|
||||
<data-column key="createdBy" title="Created By"></data-column>
|
||||
<data-column key="json" type="json" title="Json" [copyContent]="true"></data-column>
|
||||
</data-columns>
|
||||
</adf-datatable>
|
||||
</div>
|
||||
|
@@ -60,17 +60,26 @@ export class DataTableComponent {
|
||||
{
|
||||
id: 1,
|
||||
name: 'First',
|
||||
createdBy: 'Created one'
|
||||
createdBy: 'Created one',
|
||||
json: null
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: 'Second',
|
||||
createdBy: 'Created two'
|
||||
createdBy: 'Created two',
|
||||
json: {
|
||||
id: 4
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: 'Third',
|
||||
createdBy: 'Created three'
|
||||
createdBy: 'Created three',
|
||||
json: {
|
||||
id: 4,
|
||||
name: 'Image 8',
|
||||
createdOn: new Date(2016, 6, 2, 15, 8, 4)
|
||||
}
|
||||
}
|
||||
]
|
||||
);
|
||||
@@ -119,7 +128,7 @@ export class DataTableComponent {
|
||||
{ type: 'text', key: 'id', title: 'Id', sortable: true , cssClass: '', copyContent: true },
|
||||
{ type: 'text', key: 'name', title: 'Name', cssClass: 'adf-ellipsis-cell', sortable: true, copyContent: false },
|
||||
{ type: 'text', key: 'createdBy', title: 'Created By', sortable: true, cssClass: ''},
|
||||
{ type: 'json', key: 'json', title: 'Json', cssClass: 'adf-expand-cell-2'}
|
||||
{ type: 'json', key: 'json', title: 'Json', cssClass: 'adf-expand-cell-2', copyContent: true}
|
||||
]
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user