mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#82 DataTable code and readme improvements
This commit is contained in:
@@ -39,9 +39,14 @@ export class ObjectDataTableAdapter implements DataTableAdapter {
|
||||
return new ObjectDataRow(item);
|
||||
});
|
||||
|
||||
this._columns = schema.map(item => {
|
||||
return new ObjectDataColumn(item);
|
||||
});
|
||||
if (schema && schema.length > 0) {
|
||||
this._columns = schema.map(item => {
|
||||
return new ObjectDataColumn(item);
|
||||
});
|
||||
|
||||
this.sort(this._columns[0].key, 'asc');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user