-
Notifications
You must be signed in to change notification settings - Fork 35
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
Datahub: Add pagination for table component #1120
base: main
Are you sure you want to change the base?
Conversation
Affected libs:
|
📷 Screenshots are here! |
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.
Thank you!! that looks really good! I'll try this alongside with the PR from @AlitaBernachot and see if everything goes according to plan ;)
this.properties = | ||
Array.isArray(value) && value.length ? Object.keys(value[0]) : [] | ||
this.count = value.length | ||
export class TableComponent implements OnInit, AfterViewInit, OnChanges { |
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.
What do you think of renaming this component DataTableComponent
?
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.
Hum, and then I rename the TableScrollComponent
back to TableComponent
which it actually was in the beginning? Would that make sense to you, a TableComponent
that accepts datasets and a DataTableComponent
that accepts data readers?
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 think we can just get rid of the table scroll component, unless it has some use still?
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 thought to keep it temporarily for the geo-table-view.component
which has various issues to work with the new TableComponent
.
// export const WithWfs: StoryObj<TableComponent> = { | ||
// loaders: [ | ||
// async () => ({ | ||
// dataset: await openDataset( |
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.
Hello, small change, function signature has changed:
await openDataset(
'https://www.geo2france.fr/geoserver/cr_hdf/ows',
'wfs',
{
wfsFeatureType: 'accidento_hdf_L93',
}
),
`
and fix horizontal scroll
and keep loading state in table-view.component
b404f14
to
4e531b2
Compare
… and use it in the geo-table-view.component
Also make the footer the same size as before
4e531b2
to
ad9f43e
Compare
ad9f43e
to
cabd2ba
Compare
Description
This PR introduces pagination to the
table.component
Todos:
Screenshots
Quality Assurance Checklist
breaking change
labelbackport <release branch>
label