Files
azuredatastudio/extensions/resource-deployment/src/ui/wizardPageBase.ts
Charles Gagnon 064ada1d2f Change Azure region dropdown to use azurecore API (#11131)
* Change Azure region dropdown to use azurecore API for getting display name

* Fix compile errors

* Adding a few things to the vscodeignore

* and another
2020-06-29 12:44:04 -07:00

36 lines
1.0 KiB
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as azdata from 'azdata';
import { Validator } from './modelViewUtils';
export abstract class WizardPageBase<T> {
private _page: azdata.window.WizardPage;
private _validators: Validator[] = [];
constructor(title: string, description: string, private _wizard: T) {
this._page = azdata.window.createWizardPage(title);
this._page.description = description;
}
public get pageObject(): azdata.window.WizardPage {
return this._page;
}
public get wizard(): T {
return this._wizard;
}
public async onEnter(): Promise<void> { }
public onLeave(): void { }
public abstract initialize(): void;
protected get validators(): Validator[] {
return this._validators;
}
}