Tree<mds-tree>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".actions
-
auto | visible | undefinedautoShow actions on the every tree item on hover or by default.
appearance
-
depth | nonedepthSpecifies if the branches depth decorations are visible.
async
-
boolean | undefinedSpecifies the tree should be opened asynchronously when after the click, .
expanded
-
boolean | undefinedSpecifies if the tree is expanded.
label
-
stringSpecifies the selector of the target element, this attribute is used with querySelector method.
toggle
-
chevron | folderchevronSpecifies the toggle icon of the element
togglePositiontoggle-positionleft | rightleftSpecifies the toggle icon position of the element
truncate
-
all | none | wordwordTruncate the text of the element on one single line.
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. When the component has a label prop too, prefer the prop.(default)Add mds-tree-item element/s.