mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix gallery view sort drop down empty values (#2990)
restore recent in main pace trashcan example demo shell add multi select
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
</div>
|
||||
<mat-form-field *ngIf="cardview">
|
||||
<mat-select [value]="getSortingKey()">
|
||||
<mat-option *ngFor="let col of data.getColumns()"
|
||||
<mat-option *ngFor="let col of getSortableColumns()"
|
||||
[value]="col.key"
|
||||
(click)="onColumnHeaderClick(col)"
|
||||
(keyup.enter)="onColumnHeaderClick(col)">
|
||||
|
@@ -524,6 +524,12 @@ export class DataTableComponent implements AfterContentInit, OnChanges, DoCheck
|
||||
return null;
|
||||
}
|
||||
|
||||
getSortableColumns() {
|
||||
return this.data.getColumns().filter((currentColum) => {
|
||||
return currentColum.sortable === true;
|
||||
});
|
||||
}
|
||||
|
||||
private emitRowSelectionEvent(name: string, row: DataRow) {
|
||||
const domEvent = new CustomEvent(name, {
|
||||
detail: {
|
||||
|
Reference in New Issue
Block a user