@microsoft/fast-foundation > Disclosure
Disclosure class
A Disclosure Custom HTML Element. Based largely on the disclosure element.
start - Content which can be provided before the summary content
end - Content which can be provided after the summary content
title - The summary content
- The default slot for the disclosure content
toggle - fires a toggle event when the summary is toggled
Signature:export declare class Disclosure extends FoundationElement 
Properties
| Property | Modifiers | Type | Description | 
|---|---|---|---|
| expanded | boolean | Determines if the element should show the extra content or not. | |
| title | string | Invoker title | 
Methods
| Method | Modifiers | Description | 
|---|---|---|
| hide() | Hide extra content. | |
| onToggle() | Update the aria attr and fire toggleevent | |
| setup() | Register listener and set default disclosure mode | |
| show() | Show extra content. | |
| toggle() | Toggle the current(expanded/collapsed) state. |