We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afb98fb commit ac23ea0Copy full SHA for ac23ea0
src/DataTable.ts
@@ -22,8 +22,8 @@ export interface DataEvent {
22
export type SortOrder = "asc" | "desc";
23
24
@Directive({
25
- selector: 'table[mfData]',
26
- exportAs: 'mfDataTable'
+ selector: "table[mfData]",
+ exportAs: "mfDataTable"
27
})
28
export class DataTable implements OnChanges, DoCheck {
29
@@ -146,7 +146,7 @@ export class DataTable implements OnChanges, DoCheck {
146
return (row: any): any => {
147
let value = row;
148
for (const sortByProperty of sortBy.split(".")) {
149
- if(value) {
+ if (value) {
150
value = value[sortByProperty];
151
}
152
0 commit comments