+ Import
+
+import Panel from 'primevue/panel';
+
+
+ Getting Started
+ Panel is a container component that accepts content as its children.
+
+<Panel header="Godfather I">
+ The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
+ His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
+ Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
+ kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
+</Panel>
+
+
+ Toggleable
+ Content of the panel can be expanded and collapsed using toggleable option.
+
+<Panel header="Godfather I" :toggleable="true">
+ The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
+ His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
+ Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
+ kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
+</Panel>
+
+
+ Properties
+
+
+
+
+ Name |
+ Type |
+ Default |
+ Description |
+
+
+
+
+ header |
+ string |
+ null |
+ Header text of the panel. |
+
+
+ toggleable |
+ boolean |
+ null |
+ Defines if content of panel can be expanded and collapsed. |
+
+
+ collapsed |
+ boolean |
+ null |
+ Defines the initial state of panel content, supports one or two-way binding as well. |
+
+
+
+
+
+ Events
+
+
+
+
+ Name |
+ Parameters |
+ Description |
+
+
+
+
+ toggle |
+ event.originalEvent: browser event
+ event.value: collapsed state as a boolean
+ |
+ Callback to invoke when a tab toggle. |
+
+
+
+
+
+ Styling
+ Following is the list of structural style classes, for theming classes visit theming page.
+
+
+
+
+ Name |
+ Element |
+
+
+
+
+ p-panel |
+ Container element. |
+
+
+ p-panel-titlebar |
+ Header section. |
+
+
+ p-panel-title |
+ Title text of panel. |
+
+
+ p-panel-titlebar-toggler |
+ Toggle icon. |
+
+
+ p-panel-content |
+ Content of panel. |
+
+
+
+
+
+ Dependencies
+ None.
+
+
+