Class ConfirmSaveDialog

Hierarchy (view full)

Constructors

Properties

acceptButton: undefined | HTMLButtonElement
acceptCancellationSource: CancellationTokenSource = ...
activeElement: undefined | HTMLElement
closeButton: undefined | HTMLButtonElement
closeCrossNode: HTMLElement
contentNode: HTMLDivElement
controlPanel: HTMLDivElement
errorMessageNode: HTMLDivElement
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 | boolean

      Returns void

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

Accessors

Methods

  • Parameters

    • text: string
    • primary: boolean
    • Optional result: boolean

    Returns HTMLButtonElement

  • 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