Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@maggioli-design-system/mds-tree-item

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maggioli-design-system/mds-tree-item

mds-tree-item is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.

latest
npmnpm
Version
1.2.4
Version published
Weekly downloads
8
-42.86%
Maintainers
3
Weekly downloads
 
Created
Source

mds-tree-item

Properties

PropertyAttributeDescriptionTypeDefault
actionsactionsShow actions on the tree item on hover or by default."auto" | "visible" | undefinedundefined
asyncasyncSpecifies the tree should be opened asynchronously when after the click.boolean | undefinedundefined
depthdepthnumber | undefinedundefined
expandedexpandedSpecifies if the tree is expanded.boolean | undefinedundefined
iconiconThe icon displayed in the buttonstring | undefinedundefined
labellabelSpecifies the label of the tree itemstringundefined
toggletoggleSpecifies the icon of the element"chevron" | "folder" | undefinedundefined
truncatetruncateTruncate the text of the element on one single line."all" | "none" | "word" | undefined'word'

Events

EventDescriptionType
mdsTreeItemCollapseEmits when the component attribute selected is changedCustomEvent<MdsTreeItemEventDetail>
mdsTreeItemExpandEmits when the component expand it's children containerCustomEvent<MdsTreeItemEventDetail>

Methods

expand() => Promise<void>

Returns

Type: Promise<void>

updateLang() => Promise<void>

Returns

Type: Promise<void>

Slots

SlotDescription
"action"Add mds-button, mds-icon or other types component and HTML element/s.
"default"Add mds-tree-item element/s.

Shadow Parts

PartDescription
"actions-container"Selects the wrapper of the container of the actions.
"actions-list"Selects the container of the actions.

Dependencies

Depends on

  • mds-button

Graph

graph TD;
  mds-tree-item --> mds-button
  mds-button --> mds-spinner
  mds-button --> mds-icon
  mds-button --> mds-text
  style mds-tree-item fill:#f9f,stroke:#333,stroke-width:4px

Built with love @ Gruppo Maggioli from R&D Department

FAQs

Package last updated on 03 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts