Table header cell<mds-table-header-cell>Generated from @maggioli-design-system/magma@2.3.0dist/documentation.json. Encapsulation: shadow.
Magma components are web components: custom elements you write like HTML tags, with any framework or without one. Props configure them, events tell you what happened, methods are functions you call on the element and slots take the content you put inside it.
Props
Set a prop as an HTML attribute in the markup, or as a property from JavaScript. The Attribute column gives the name of the attribute, a dash when it is the same as the property; props without one, such as arrays and functions, are set from JavaScript only. To turn a boolean attribute off, remove it: never write 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
Events
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.