Skip to main content

@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

PropertyModifiersTypeDescription
expandedbooleanDetermines if the element should show the extra content or not.
titlestringInvoker title

Methods

MethodModifiersDescription
hide()Hide extra content.
onToggle()Update the aria attr and fire toggle event
setup()Register listener and set default disclosure mode
show()Show extra content.
toggle()Toggle the current(expanded/collapsed) state.