-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(table): support dynamic column definitions (#5545)
* checkin * move logic from baserow to table * update * tests * add tests * lint * fix imports, revert columnsDiffer as protected * add tests for errors * add license to errors file * review * remove unnecessary imports * add comment about ngDoCheck() * cleanup imports * remove fdescribe * rebase * ugh, fdescribe * rebase
- Loading branch information
1 parent
e9ab9b4
commit 66e222f
Showing
7 changed files
with
322 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
|
||
/** | ||
* Returns an error to be thrown when attempting to find an unexisting column. | ||
* @param id Id whose lookup failed. | ||
* @docs-private | ||
*/ | ||
export function getTableUnknownColumnError(id: string) { | ||
return Error(`cdk-table: Could not find column with id "${id}".`); | ||
} | ||
|
||
/** | ||
* Returns an error to be thrown when two column definitions have the same name. | ||
* @docs-private | ||
*/ | ||
export function getTableDuplicateColumnNameError(name: string) { | ||
return Error(`cdk-table: Duplicate column definition name provided: "${name}".`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.