-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(cdk-experimental/table-scroll-container): Create directive and demo #21200
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
Conversation
e4ee71d
to
ff87d6c
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.
Aside from the other comments, I'm not sure whether it needs a new top-level package for a single component. Couldn't we have it in a separate NgModule
that is exported from the table
package?
src/cdk-experimental/table-scroll-container/table-scroll-container.ts
Outdated
Show resolved
Hide resolved
src/cdk-experimental/table-scroll-container/table-scroll-container.ts
Outdated
Show resolved
Hide resolved
src/cdk-experimental/table-scroll-container/table-scroll-container.ts
Outdated
Show resolved
Hide resolved
src/cdk-experimental/table-scroll-container/table-scroll-container.ts
Outdated
Show resolved
Hide resolved
Jeremy wanted this to be in experimental initially, but I'd be fine with that once we've committed to it. |
src/cdk-experimental/table-scroll-container/table-scroll-container.ts
Outdated
Show resolved
Hide resolved
src/cdk-experimental/table-scroll-container/table-scroll-container.ts
Outdated
Show resolved
Hide resolved
} | ||
} | ||
|
||
stickyColsUpdated(sizes: (number|null|undefined)[]): void { |
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.
Would it make sense to name these methods e.g. updateStickyColumnsSizes
- actively performing the update rather than naming as a handler for the columns being updated.
(also writing out "columns" instead of "cols")
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.
I was thinking that MatTable is responsible for updating the actual sizes of the columns - the scroll container is reactive to that by updating its own CSS.
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.
Changed Cols to Columns
src/cdk-experimental/table-scroll-container/table-scroll-container.ts
Outdated
Show resolved
Hide resolved
src/cdk-experimental/table-scroll-container/table-scroll-container.ts
Outdated
Show resolved
Hide resolved
db1c83d
to
5569b47
Compare
Does anyone know how to update the list of allowed scopes for the commit message lint test? |
5569b47
to
b92a8c3
Compare
Adds the CdkTableScrollContainer and some hooks in CdkTable for it. For Webkit/Blink browsers, this sizes the scroll bars in coordinating with sticky rows/columns in the table to create the user experience that a lot of commenters in angular#5885 seemed to want but without the accessibility problems of other approaches.
b92a8c3
to
5cd4cd9
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.
LGTM, it would be nice if @andrewseguin could take a look.
Also FYI we're not merging any PRs during the holidays
import {CdkTableScrollContainerModule} from '@angular/cdk-experimental/table-scroll-container'; | ||
import {MatButtonModule} from '@angular/material-experimental/mdc-button'; | ||
import {MatButtonToggleModule} from '@angular/material/button-toggle'; | ||
/*import {MatTableModule} from '@angular/material-experimental/mdc-table';*/ |
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.
Commented line
…emo (angular#21200) Adds the CdkTableScrollContainer and some hooks in CdkTable for it. For Webkit/Blink browsers, this sizes the scroll bars in coordinating with sticky rows/columns in the table to create the user experience that a lot of commenters in angular#5885 seemed to want but without the accessibility problems of other approaches.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Adds the CdkTableScrollContainer and some hooks in CdkTable for it.
For Webkit/Blink browsers, this sizes the scroll bars in coordinating with
sticky rows/columns in the table to create the user experience that a lot of
commenters in #5885 seemed to want but without the accessibility problems of
other approaches.