Skip to content

Commit 537beff

Browse files
committed
fix(platform): table navigation refactoring, naming improvements
1 parent a016d60 commit 537beff

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

libs/platform/src/lib/components/table/table.component.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export class TableComponent<T = any> extends Table implements AfterViewInit, OnD
249249
* Pass string value with the key of the row item's field to compute state for every single row.
250250
*/
251251
@Input()
252-
rowNavigatable: string | boolean;
252+
rowNavigatable: string | boolean = false;
253253

254254
/** Whether table row can be clicked */
255255
@Input()
@@ -1766,15 +1766,16 @@ export class TableComponent<T = any> extends Table implements AfterViewInit, OnD
17661766
}
17671767

17681768
/** @hidden */
1769-
private _isRowNavigatable(row: T, rowNavigationDisabled: string | boolean): boolean {
1769+
private _isRowNavigatable(row: T, rowNavigatable: string | boolean): boolean {
17701770
if (!row) {
17711771
return false;
17721772
}
17731773

1774-
if (isString(rowNavigationDisabled)) {
1775-
return !!row[rowNavigationDisabled];
1774+
/** If key of the of the row's item field passed */
1775+
if (isString(rowNavigatable)) {
1776+
return !!row[rowNavigatable];
17761777
}
17771778

1778-
return !!rowNavigationDisabled;
1779+
return !!rowNavigatable;
17791780
}
17801781
}

0 commit comments

Comments
 (0)