diff --git a/demo-shell/src/app/app.component.scss b/demo-shell/src/app/app.component.scss
index f15d10be2c..88ac91260b 100644
--- a/demo-shell/src/app/app.component.scss
+++ b/demo-shell/src/app/app.component.scss
@@ -10,12 +10,12 @@ router-outlet[name='overlay'] + * {
@media (max-width: 425px) {
adf-content-node-selector {
.adf-content-node-selector-content-list {
- .adf-data-table-cell {
+ .adf-datatable-cell {
display: none;
}
- .adf-data-table-cell:first-child,
- .adf-data-table-cell:nth-child(2) {
+ .adf-datatable-cell:first-child,
+ .adf-datatable-cell:nth-child(2) {
display: table-cell;
}
}
diff --git a/demo-shell/src/app/components/datatable/datatable.component.html b/demo-shell/src/app/components/datatable/datatable.component.html
index 5d95002843..6c0cbd8ce7 100644
--- a/demo-shell/src/app/components/datatable/datatable.component.html
+++ b/demo-shell/src/app/components/datatable/datatable.component.html
@@ -2,28 +2,37 @@
-
-
-
-
+
+
+
Selected items: {{ dataTable.selection?.length }}
@@ -47,4 +56,4 @@
-
+
\ No newline at end of file
diff --git a/demo-shell/src/app/components/datatable/datatable.component.ts b/demo-shell/src/app/components/datatable/datatable.component.ts
index bfe9185149..16e6a48c5f 100644
--- a/demo-shell/src/app/components/datatable/datatable.component.ts
+++ b/demo-shell/src/app/components/datatable/datatable.component.ts
@@ -54,6 +54,7 @@ export class DataTableComponent {
multiselect = false;
data: FilteredDataAdapter;
+ stickyHeader = false;
@Input()
selectionMode = 'single';
@@ -100,18 +101,18 @@ export class DataTableComponent {
},
{
id: 4,
- name: 'Image 1',
+ name: 'Image 8',
createdOn: new Date(2016, 6, 2, 15, 8, 4),
createdBy: this._createdBy,
- icon: this._imageUrl
+ icon: 'material-icons://alarm'
}
],
[
{ type: 'image', key: 'icon', title: '', srTitle: 'Thumbnail' },
- { type: 'text', key: 'id', title: 'Id', sortable: true , cssClass: 'adf-desktop-only'},
- { type: 'text', key: 'createdOn', title: 'Created On', sortable: true },
- { type: 'text', key: 'name', title: 'Name', cssClass: 'adf-full-width adf-name-column', sortable: true },
- { type: 'text', key: 'createdBy.name', title: 'Created By', sortable: true, cssClass: 'adf-desktop-only'}
+ { type: 'text', key: 'id', title: 'Id', sortable: true , cssClass: 'adf-ellipsis-cell' },
+ { type: 'text', key: 'createdOn', title: 'Created On', sortable: true, cssClass: 'adf-ellipsis-cell adf-expand-cell-5' },
+ { type: 'text', key: 'name', title: 'Name', cssClass: '', sortable: true },
+ { type: 'text', key: 'createdBy.name', title: 'Created By', sortable: true, cssClass: ''}
]
);
@@ -199,4 +200,8 @@ export class DataTableComponent {
onRowDblClick(event) {
this.logService.log(event);
}
+
+ toggleStickyHeader() {
+ this.stickyHeader = !this.stickyHeader;
+ }
}
diff --git a/demo-shell/src/app/components/files/files.component.html b/demo-shell/src/app/components/files/files.component.html
index 4b47c3e023..09ffaca6f5 100644
--- a/demo-shell/src/app/components/files/files.component.html
+++ b/demo-shell/src/app/components/files/files.component.html
@@ -202,6 +202,7 @@
+ class="adf-ellipsis-cell adf-expand-cell-5">
@@ -254,7 +255,7 @@
key="name"
title="{{'DOCUMENT_LIST.COLUMNS.DISPLAY_NAME' | translate}}"
[formatTooltip]="getNodeNameTooltip"
- class="adf-full-width adf-ellipsis-cell">
+ class="adf-ellipsis-cell adf-expand-cell-5">
-