-
Notifications
You must be signed in to change notification settings - Fork 126
DT-3150 - refactor paginated table to use <Table /> component
#2830
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
- add deprecated comment to ApiPagination - change "fancy" prop to "primary"
…om what I can tell
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| @@ -1,3 +1,7 @@ | |||
| <!-- | |||
| @component ApiPagination | |||
| @deprecated This component is deprecated. Use `src/lib/holocene/table/paginated-table/api-paginated.svelte` instead. | |||
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.
🎉
| export let updating = false; | ||
| export let maxHeight = ''; | ||
| export let fixed = false; | ||
| export let id: string = null; |
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.
Should we just extend the HTMLTableAttributes here instead of defining id?
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.
In this case maybe not the most useful, because this component is really only ever used when wrapped by src/lib/holocene/table/paginated-table/api-paginated.svelte or src/lib/holocene/table/paginated-table/paginated.svelte, and those components don't extended html table attributes. That said, they probably should. I've at least made the change to this component for now.
Description & motivation 💭
<Table />component<Table />to support only adding a border when the table isn't wrapped by an element with a border<SkeletonTable /><ApiPagination />Screenshots (if applicable) 📸
Design Considerations 🎨
Testing 🧪
How was this tested 👻
Steps for others to test: 🚶🏽♂️🚶🏽♀️
Checklists
Draft Checklist
Merge Checklist
Issue(s) closed
Docs
Any docs updates needed?