-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FEATURE] Création du composant Table (PIX-14514) #771
base: dev
Are you sure you want to change the base?
Conversation
Une fois l'application déployée, elle sera accessible à cette adresse https://ui-pr771.review.pix.fr |
6ec1535
to
e9836e0
Compare
Le composant se met à priori dans la catégorie Data display :) |
Co-authored-by: Iris Benoit <[email protected]> Co-authored-by: Fael Bassetti <[email protected]>
Co-authored-by: Jérémie Jadé <[email protected]> Co-authored-by: Fael Bassetti <[email protected]>
Co-authored-by: Jérémie Jadé <[email protected]> Co-authored-by: Fael Bassetti <[email protected]>
Co-authored-by: Jérémie Jadé <[email protected]> Co-authored-by: Fael Bassetti <[email protected]>
a01d6f2
to
9d03e36
Compare
<table ...attributes> | ||
<caption class="screen-reader-only">{{@caption}}</caption> | ||
<thead> | ||
<tr> |
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.
todo
Utiliser un named yield pour pousser les headers. Qui seront des futur <PixTableHeader>
Il pourront contenir autre chose que du texte.
</thead> | ||
<tbody> | ||
{{#each this.computedData as |row|}} | ||
<tr> |
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.
Idem pour le td. Ce sera des <PixTableCell>
a ajouter dans un named yield
@@ -1,12 +1,14 @@ | |||
.pix-table { | |||
width: 100%; | |||
padding: var(--pix-spacing-4x); | |||
overflow: auto; |
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.
❤️
Co-authored-by: Jérémie Jadé <[email protected]> Co-authored-by: Fael Bassetti <[email protected]>
883491c
to
43186c1
Compare
75c5abd
to
00d275f
Compare
00d275f
to
e151644
Compare
e151644
to
43d6cd1
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.
Super bon boulot ✨
(j'approve pas à cause des todos, cf mon commentaire 😁)
app/stories/pix-table-column.mdx
Outdated
|
||
# PixTableColumn | ||
|
||
TODO: insert component description |
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.
Pourquoi ne pas gérer les Todo maintenant ?
(oui, je veux vous faire bosser 😂)
43d6cd1
to
37ba441
Compare
Co-authored-by: Iris Benoit-Martin <[email protected]> Co-authored-by: Jérémie Jadé <[email protected]> Co-authored-by: Fael Bassetti <[email protected]>
37ba441
to
49c3f10
Compare
🎄 Problème
Nous avons besoin d'un composant réutilisable table.
🎁 Proposition
Création du composant
PixTable
et de son sous-composantPixTableColumn
pour gérer le rendu des colonnes.🌟 Remarques
On utilise maintenant les block params d'Ember pour laisser l'utilisateur du composant gérer le rendu des colonnes.
🎅 Pour tester
Consulter sa documentation et nous faire des retours sur son apparence et son API si besoin.