1.2.4 • Published 8 months ago

@maggioli-design-system/mds-tree-item v1.2.4

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

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

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

1.2.4

8 months ago

1.2.3

9 months ago

1.2.2

10 months ago

1.2.1

11 months ago

1.2.0

11 months ago

1.1.0

11 months ago

1.0.0

12 months ago