Class ReactDialog<T>Abstract

Type Parameters

  • T

Hierarchy (view full)

Constructors

Properties

acceptButton: undefined | HTMLButtonElement
acceptCancellationSource: CancellationTokenSource = ...
activeElement: undefined | HTMLElement
closeButton: undefined | HTMLButtonElement
closeCrossNode: HTMLElement
contentNode: HTMLDivElement
contentNodeRoot: Root
controlPanel: HTMLDivElement
errorMessageNode: HTMLDivElement
isMounted: boolean
onDidChangeVisibility: Event<boolean> = ...
onDidChangeVisibilityEmitter: Emitter<boolean> = ...
onDidDispose: Event<void> = ...
onDidDisposeEmitter: Emitter<void> = ...
onScrollUp: Event<void> = ...
onScrollUpEmitter: Emitter<void> = ...
onScrollYReachEnd: Event<void> = ...
onScrollYReachEndEmitter: Emitter<void> = ...
reject: undefined | ((reason) => void)

Type declaration

    • (reason): void
    • Parameters

      • reason: any

      Returns void

resolve: undefined | ((value) => void)

Type declaration

    • (value): void
    • Parameters

      • value: undefined | T

      Returns void

scrollBar?: PerfectScrollbar
scrollOptions?: Options
titleNode: HTMLDivElement
toDispose: DisposableCollection = ...
toDisposeOnDetach: DisposableCollection = ...
validateCancellationSource: CancellationTokenSource = ...

Accessors

Methods

  • This prevents tabbing outside the dialog by marking elements as inert, i.e., non-clickable and non-focussable.

    Parameters

    • elements: Element[] = ...

      the elements for which we disable tabbing. By default all elements within the body element are considered. Please note that this may also include other popups such as the suggestion overlay, the notification center or quick picks.

    Returns Disposable

    a disposable that will restore the previous tabbing behavior

  • Render the React widget in the DOM.

    • If the widget has been previously rendered, any subsequent calls will perform an update and only change the DOM if absolutely necessary.

    Returns ReactNode