Table header cell<mds-table-header-cell>Generato da @maggioli-design-system/magma@2.3.0dist/documentation.json. Incapsulamento: shadow.
Questa pagina è generata dai pacchetti Magma, documentati solo in inglese.
I componenti Magma sono web component: elementi personalizzati che scrivi come i tag HTML, con qualsiasi framework o senza. Le proprietà li configurano, gli eventi dicono cosa è successo, i metodi sono funzioni da chiamare sull'elemento e gli slot accolgono il contenuto che metti al suo interno.
Proprietà
Imposta una proprietà come attributo HTML nel markup, oppure come proprietà da JavaScript. La colonna Attributo dà il nome dell'attributo, un trattino quando coincide con la proprietà; le proprietà senza attributo, come array e funzioni, si impostano solo da JavaScript. Per spegnere un attributo booleano, rimuovilo: non scrivere mai disabled="false".direction
-
ascending | descending | nonenoneSpecifies the current sort direction of the column. Set from outside, it sorts the rows like a
click, or only shows the order when the table has sorting="external".
label
-
string | undefinedSets a label for the cell
sortKeysort-keystring | undefinedNames the column in the mdsTableHeaderCellSort event, for example the field the back end
sorts by
sortable
-
boolean | undefinedTells the component to make the cell able to sort the table columns items
Eventi
mdsTableHeaderCellSortMdsTableHeaderCellSortEventDetailEmits when the user changes the sort direction of the column, at every step of the cycle. With
sorting="external" on the table the rows are not moved: the application renders them in the
order asked.