Files
azuredatastudio/extensions/resource-deployment/src/ui/wizardPageInfo.ts
Arvind Ranasaria b8de69dfac GenerateToNotebook and Deploy buttons for Notebook Wizards (#12656)
* enable userChooses how to run notebook

* arc ext changes

* nb fixes

* working version

* revert unneeded changes

* fix comments

* Update interfaces.ts

* fix comments

* fix comments

* fix comments

* runAllCells instead of background execute

* pr feedback

* PR feedback

* pr feedback

* arc ext changes for new WizardInfo syntax

* fix doc comments

* pr feedback
2020-09-29 18:12:30 -07:00

27 lines
771 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export class WizardPageInfo {
public get pageCount(): number {
return this._pageCount;
}
public get currentPageId(): number {
return this._currentPageId;
}
public get isFirstPage(): boolean {
return this._currentPageId === 0;
}
public get isLastPage(): boolean {
return this._currentPageId === this._pageCount - 1;
}
constructor(private _currentPageId: number, private _pageCount: number) {
}
}