Aute ullamco officia fugiat culpa do tempor tempor aute excepteur magna. Quis velit adipisicing excepteur do eu duis elit. Sunt ea pariatur nulla est laborum proident sunt labore commodo Lorem laboris nisi Lorem.
The ui5-panel component is a container which has a header and a content area and is used for grouping and displaying information. It can be collapsed to save space on the screen.
Nesting two or more panels is not recommended.
Do not stack too many panels on one page.
The panel's header area consists of a title bar with a header text or custom header. The header is clickable and can be used to toggle between the expanded and collapsed state. It includes an icon which rotates depending on the state. The custom header can be set through the header slot and it may contain arbitraray content, such as: title, buttons or any other HTML elements. The content area can contain an arbitrary set of controls. Note: The custom header is not clickable out of the box, but in this case the icon is interactive and allows to show/hide the content area.
If the width of the panel is set to 100% (default), the panel and its children are resized responsively, depending on its parent container.
If the panel has a fixed height, it will take up the space even if the panel is collapsed.
When the panel is expandable (the fixed property is set to false), an arrow icon (pointing to the right) appears in front of the header.
When the animation is activated, expand/collapse uses a smooth animation to open or close the content area.
When the panel expands/collapses, the arrow icon rotates 90 degrees clockwise/counter-clockwise.
CSS Shadow Parts
CSS Shadow Parts allow developers to style elements inside the Shadow DOM. The ui5-panel exposes the following CSS Shadow Parts:
header - Used to style the wrapper of the header
content - Used to style the wrapper of the content
This component provides a build in fast navigation group which can be used via F6 / Shift + F6 or Ctrl + Alt(Option) + Down / Ctrl + Alt(Option) + Up. In order to use this functionality, you need to import the following module: import "@ui5/webcomponents-base/dist/features/F6Navigation.js"
ES6 Module Import
You can use both properties and attributes with the same effect. The name of each attribute is listed below the name of the property, if different.
Defines the accessible ARIA name of the component.
Sets the accessible ARIA role of the component. Depending on the usage, you can change the role from the default Form to Region or Complementary.
Indicates whether the component is collapsed and only the header is displayed.
Determines whether the component is in a fixed state that is not expandable/collapsible by user interaction.
Defines the "aria-level" of component heading, set by the headerText.
Available options are: "H6" to "H1".
This property is used to set the header text of the component. The text is visible in both expanded and collapsed states.
Note: This property is overridden by the header slot.
Indicates whether the transition between the expanded and the collapsed state of the component is animated. By default the animation is enabled.
This Element provides slot(s). This means it can display its child nodes.
Unless targeting the default slot, use the slot attribute to define the destination slot for each child.
Text, along with HTML Elements with no slot attribute, goes the the default slot.
Defines the content of the component. The content is visible only when the component is expanded.
Defines the component header area.
Note: When a header is provided, the headerText property is ignored.
This Web Component fires semantic events upon user interaction. You can bind to these events with the standard DOM APIs, such as addEventListener.
Fired when the component is expanded/collapsed by user interaction.
Theme:Morning Horizon (Light)Evening Horizon (Dark)Horizon High Contrast BlackHorizon High Contrast WhiteQuartz LightQuartz DarkQuartz High Contrast BlackQuartz High Contrast White