SiCollapsiblePanelComponent documentation¶
import { SiCollapsiblePanelComponent } from '@siemens/element-ng/accordion'; Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| badge ¶ | 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 ¶ | string | undefined | Defines the background color of the badge. Default is specific to Element flavour. | |
| colorVariant deprecated ¶ | BackgroundColorVariant | undefined | Color variant for component background. Deprecated: This input has no effect on the component styling. | |
| contentBgClasses ¶ | string | '' | Additional CSS classes for the collapsible content region. |
| contentCssClasses ¶ | string | '' | Additional CSS classes for the wrapping content element. |
| disabled ¶ | boolean | false | Whether the si-collapsible-panel is disabled. |
| headerCssClasses ¶ | string | '' | Additional CSS classes for the top element. |
| heading ¶ | TranslatableString | undefined | Heading for the collapsible panel. | |
| icon ¶ | string | undefined | The icon to be displayed besides the heading. | |
| opened ¶ | boolean | false | Expand/collapse the panel. |
Output Properties¶
| Name | Type | Description |
|---|---|---|
| openedChange ¶ | boolean | Expand/collapse the panel. |
| panelToggle ¶ | 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¶
Types Documentation¶
Use this type with filter components import type { BackgroundColorVariant } from '@siemens/element-ng/common';colorVariant to render component variants based on background of container
Represents a translatable string. This can either be a translation key, e.g. import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';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.
Except where otherwise noted, content on this site is licensed under MIT License.