Class ShouldSaveDialog

Hierarchy (view full)

Constructors

Properties

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

scrollBar?: PerfectScrollbar
scrollOptions?: Options
shouldSave: boolean = true
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