9.0.4 • Published 3 months ago

@exmg/exmg-collapsed v9.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

<exmg-collapsed> Published on npm

Collapsed element contains a slot that can be expanded or collapsed to reveal additional content or information.

Demo

Installation

npm install @exmg/exmg-collapsed

Example Usage

Standard

@property({type:  Boolean})
opened = false;
<exmg-button @click=${() => (this.opened = !this.opened)}>Open</exmg-button>

<exmg-collapsed  ?opened=${this.opened}>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
    aliqua.
</exmg-collapsed>

API

Slots

NameDescription
defaultDefault content to display within the collapsible element

Properties/Attributes

NameTypeDefaultDescription
openedbooleanfalseThe opened state of the component

Methods

NameDescription
toggleToggles the opened state of the component
showSets the opened state of the component to true
hideSets the opened state of the component to false

Events

None

CSS Custom Properties

None

Additional references

9.0.4

3 months ago

9.0.3

3 months ago

9.0.1

3 months ago

8.1.35

7 months ago

8.1.34

10 months ago

8.1.31

11 months ago

8.1.33

11 months ago

8.1.32

11 months ago

8.1.22

2 years ago

8.1.17

2 years ago