A simple backdrop.

Defines the class ".backdrop-no-scroll" which simply sets "overflow: hidden" and "backdrop-no-scroll-gutter" which sets "overflow: hidden" and "scrollbar-gutter: stable".

Properties

background: string = 'black'

The background of the backdrop.

disabled: boolean = false

Disables the backdrop temporally.

Remembers whether the body had the class "backdrop-no-scroll" when got disabled, removes it when disabled and adds it when activated again.

opacity: string = '0.01'

The opacity of the backdrop.

Methods

  • Removes the backdrop from the DOM. Also removes the class "backdrop-no-scroll" from the body if set.

    Returns Promise<void>

Generated using TypeDoc