Questa pagina è generata dai pacchetti Magma, documentati solo in inglese.
<!-- INCORRECT --><div class="my-grid"> <mds-table-cell>Nome</mds-table-cell> <mds-table-cell>Email</mds-table-cell></div>
<!-- CORRECT --><mds-table> <mds-table-body> <mds-table-row> <mds-table-cell><mds-text typography="detail">Nome</mds-text></mds-table-cell> <mds-table-cell><mds-text typography="detail">Email</mds-text></mds-table-cell> </mds-table-row> </mds-table-body></mds-table><!-- INCORRECT --><mds-table-row> <td>Mario Rossi</td> <td>mario.rossi@esempio.it</td></mds-table-row>
<!-- CORRECT --><mds-table-row> <mds-table-cell><mds-text typography="detail">Mario Rossi</mds-text></mds-table-cell> <mds-table-cell><mds-text typography="detail">mario.rossi@esempio.it</mds-text></mds-table-cell></mds-table-row><!-- INCORRECT: "12 marzo 2024" sorts before "2 gennaio 2024" lexicographically --><mds-table-cell> <mds-text typography="detail">12 marzo 2024</mds-text></mds-table-cell>
<!-- CORRECT: ISO date in value drives sort; display string is for humans --><mds-table-cell value="2024-03-12"> <mds-text typography="detail">12 marzo 2024</mds-text></mds-table-cell>/* INCORRECT */mds-table-cell >>> span { color: red;}
/* CORRECT */mds-table-cell { --mds-table-cell-color: rgb(var(--magma-danger-fg));}<!-- INCORRECT --><mds-table-row> <div class="cell-wrapper"> <mds-table-cell><mds-text typography="detail">Cognome</mds-text></mds-table-cell> </div></mds-table-row>
<!-- CORRECT --><mds-table-row> <mds-table-cell><mds-text typography="detail">Cognome</mds-text></mds-table-cell></mds-table-row>