# SiCollapsiblePanelComponent documentation

**Kind:** component

**Selector:** `si-collapsible-panel`

```
import { SiCollapsiblePanelComponent } from '@siemens/element-ng/accordion';
```

```
component SiCollapsiblePanelComponent
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [badge](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L93-L93>) | `string \| number \| undefined` |  | Defines the content of the optional badge. Should be a number or something like "100+". if undefined or empty string, no badge is displayed |
| [badgeColor](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L97-L97>) | `string \| undefined` |  | Defines the background color of the badge. Default is specific to Element flavour. |
| [colorVariant](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L88-L88>) (deprecated) | `BackgroundColorVariant \| undefined` |  | Color variant for component background.<br><br>Deprecated: This input has no effect on the component styling. |
| [contentBgClasses](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L60-L60>) | `string` | `''` | Additional CSS classes for the collapsible content region. |
| [contentCssClasses](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L66-L66>) | `string` | `''` | Additional CSS classes for the wrapping content element. |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L82-L82>) | `boolean` | `false` | Whether the si-collapsible-panel is disabled. |
| [headerCssClasses](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L54-L54>) | `string` | `''` | Additional CSS classes for the top element. |
| [heading](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L48-L48>) | `TranslatableString \| undefined` |  | Heading for the collapsible panel. |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L76-L76>) | `string \| undefined` |  | The icon to be displayed besides the heading. |
| [opened](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L72-L72>) | `boolean` | `false` | Expand/collapse the panel. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [openedChange](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L72-L72>) | `boolean` | Expand/collapse the panel. |
| [panelToggle](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L103-L103>) | `boolean` | An event emitted when the user triggered expand/collapse and emit with the new open state. The event is emitted before the animation happens. |

#### Attributes and Methods

##### openClose

[Source for openClose](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L138-L151>)

Expand/collapse panel.

```
openClose(open: boolean, enableAnimation?: boolean = true): void
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [open](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L138-L138>) | `boolean` |  | • indicate the panel shall open or close |
| [enableAnimation](<https://github.com/siemens/element/blob/main/projects/element-ng/accordion/si-collapsible-panel.component.ts#L138-L138>) (optional) | `boolean` | `true` | • with animation |

**Returns:** [void](<https://www.typescriptlang.org/docs/handbook/2/functions.html#void>)

### Types Documentation

### [BackgroundColorVariant](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/color-variant.model.ts#L8-L8>)

**Kind:** type alias

```
import type { BackgroundColorVariant } from '@siemens/element-ng/common';
```

Use this type with filter components `colorVariant` to render component variants based on background of container

```
type BackgroundColorVariant = 'base-1' | 'base-0'
```

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';
```

Represents a translatable string. This can either be a translation key, e.g. `ACTIONS.EDIT` that will be automatically translated when displayed on the UI or a pre-translated string, e.g. `Edit`. Equivalent to a normal string in usage and functionality.

```
type TranslatableString = string & Translatable
```
