+ Import
+
+import Fieldset from 'primevue/fieldset';
+
+
+ Getting Started
+ Fieldset is a container component that accepts content as its children.
+
+<Fieldset legend="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.
+</Fieldset>
+
+
+ Toggleable
+ Content of the fieldset can be expanded and collapsed using toggleable option..
+
+<Fieldset legend="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.
+</Fieldset>
+
+
+ Properties
+
+
+
+
+ Name |
+ Type |
+ Default |
+ Description |
+
+
+
+
+ legend |
+ string |
+ null |
+ Header text of the fieldset. |
+
+
+ toggleable |
+ boolean |
+ null |
+ When specified, content can toggled by clicking the legend. |
+
+
+ collapsed |
+ boolean |
+ null |
+ Defines the default visibility state of the content. |
+
+
+
+
+
+ Events
+
+
+
+
+ Name |
+ Parameters |
+ Description |
+
+
+
+
+ toggle |
+ event.originalEvent: browser event
+ event.value: Collapsed state as a boolean
+ |
+ Callback to invoke when a tab gets expanded or collapsed. |
+
+
+
+
+
+ Styling
+ Following is the list of structural style classes, for theming classes visit theming page.
+
+
+
+
+ Name |
+ Element |
+
+
+
+
+ p-fieldset |
+ Fieldset element. |
+
+
+ p-fieldset-toggleable |
+ Toggleable fieldset element. |
+
+
+ p-fieldset-legend |
+ Legend element. |
+
+
+ p-fieldset-content |
+ Content element. |
+
+
+
+
+
+ Dependencies
+ None.
+
+
+