-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui5-table): adding horizontal column alignment #9639
Conversation
7b833aa
to
2a4c627
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As already mentioned by you, tests are missing. Make sure to test, if changing the value and setting it after initial rendering actually works as expected.
Please also add the necessary documentation as well as a sample, that can be shown in the documentation/demokit.
packages/main/src/TableHeaderCell.ts
Outdated
@@ -78,13 +78,20 @@ class TableHeaderCell extends TableCellBase { | |||
|
|||
protected ariaRole: string = "columnheader"; | |||
_popinWidth: number = 0; | |||
_individualSlot?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remove this I get warnings.
Property '_individualSlot' does not exist on type 'TableHeaderCell'.
See #9639 (comment) for more information.
@DonkeyCo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just needed for TS to be happy and avoid warnings as Daniel mentioned
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then this should better be in the CellBase
Bumps [rollup](https://github.com/rollup/rollup) from 3.28.1 to 3.29.5. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](rollup/rollup@v3.28.1...v3.29.5) --- updated-dependencies: - dependency-name: rollup dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.3 to 4.5.5. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v4.5.5/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v4.5.5/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
packages/main/src/TableHeaderCell.ts
Outdated
@@ -78,13 +78,20 @@ class TableHeaderCell extends TableCellBase { | |||
|
|||
protected ariaRole: string = "columnheader"; | |||
_popinWidth: number = 0; | |||
_individualSlot?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just needed for TS to be happy and avoid warnings as Daniel mentioned
packages/main/src/TableHeaderCell.ts
Outdated
@@ -78,13 +78,20 @@ class TableHeaderCell extends TableCellBase { | |||
|
|||
protected ariaRole: string = "columnheader"; | |||
_popinWidth: number = 0; | |||
_individualSlot?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then this should better be in the CellBase
Introduction of a new property
hAlign
.hAlign
is used to configure the horizontal alignment. The idea is to configure the horizontal alignment on the header level of the GridTable and then automatically adjust the alignment of the cells according to their header cell.Tests are still missing