Skip to content
Magma Design System
Table row<mds-table-row>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".interactive - boolean | undefinedSpecifies whether the row reacts to user interaction (hover/focus).
overlayActionsoverlay-actionsbooleanSpecifies whether the row’s actions are shown as an overlay.
selectable - boolean | undefinedundefinedSpecifies whether the row can be selected via a checkbox.
selected - boolean | undefinedSpecifies whether the row is currently selected.
selection - boolean | undefinedReflects the parent table selection state (set by mds-table); drives the row action background without :host-context
value - number | string | undefinedThe value associated with the row, emitted when the row is selected.
Slots
Slots take the content you write between the tags of the component. The default slot, the one without a name, accepts plain text, unless its description says otherwise. Content for a named slot goes on a direct child with the name of the slot in its slot attribute, such as slot="action".(default)Put mds-table-cell element/s.
No slot name
actionPut mds-button element/s or other kind of actions as aside menu for the single row.