-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wizard): add back inline wizards in 15.x (#1067)
This reverts commit 7470769 (#419), removes the deprecated comments, and adds a comment explaining when inline wizards are used. Inline wizards are used by vSphere plugins to display a wizard inside an iframe that is inside a modal. CDE-154
- Loading branch information
1 parent
002af03
commit c5d3f09
Showing
11 changed files
with
211 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!-- | ||
~ Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved. | ||
~ This software is released under MIT license. | ||
~ The full license information can be found in LICENSE in the root directory of this project. | ||
--> | ||
<button class="btn btn-primary" (click)="wizard.open()">Inline Wizard</button> | ||
|
||
<clr-wizard | ||
#wizard | ||
[(clrWizardOpen)]="open" | ||
[clrWizardSize]="'lg'" | ||
[clrWizardPreventModalAnimation]="true" | ||
class="clr-wizard--inline clr-wizard--no-shadow clr-wizard--no-title" | ||
style="height: 500px" | ||
> | ||
<clr-wizard-title>Inline Wizard</clr-wizard-title> | ||
|
||
<clr-wizard-button [type]="'cancel'">Cancel</clr-wizard-button> | ||
<clr-wizard-button [type]="'previous'">Back</clr-wizard-button> | ||
<clr-wizard-button [type]="'next'">Next</clr-wizard-button> | ||
<clr-wizard-button [type]="'finish'">Submit</clr-wizard-button> | ||
|
||
<clr-wizard-page> | ||
<ng-template clrPageTitle>Page 1</ng-template> | ||
<!-- optional --> | ||
|
||
<p>Content for page 1</p> | ||
<p class="content-for-page-1"> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quae minima inventore quia, officiis rem id explicabo | ||
incidunt, illum deleniti qui doloremque voluptatem, saepe tenetur quas! Quaerat explicabo expedita placeat vero. | ||
</p> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quae minima inventore quia, officiis rem id explicabo | ||
incidunt, illum deleniti qui doloremque voluptatem, saepe tenetur quas! Quaerat explicabo expedita placeat vero. | ||
</p> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quae minima inventore quia, officiis rem id explicabo | ||
incidunt, illum deleniti qui doloremque voluptatem, saepe tenetur quas! Quaerat explicabo expedita placeat vero. | ||
</p> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quae minima inventore quia, officiis rem id explicabo | ||
incidunt, illum deleniti qui doloremque voluptatem, saepe tenetur quas! Quaerat explicabo expedita placeat vero. | ||
</p> | ||
</clr-wizard-page> | ||
|
||
<clr-wizard-page> | ||
<ng-template clrPageTitle>Page 2</ng-template> | ||
<!-- mandatory --> | ||
|
||
<p>Content for page 2</p> | ||
<p class="content-for-page-2"> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quae minima inventore quia, officiis rem id explicabo | ||
incidunt, illum deleniti qui doloremque voluptatem, saepe tenetur quas! Quaerat explicabo expedita placeat vero. | ||
</p> | ||
</clr-wizard-page> | ||
|
||
<clr-wizard-page> | ||
<ng-template clrPageTitle>Page 3</ng-template> | ||
<!-- mandatory --> | ||
|
||
<p class="content-for-page-3">Content for page 3</p> | ||
</clr-wizard-page> | ||
</clr-wizard> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved. | ||
* This software is released under MIT license. | ||
* The full license information can be found in LICENSE in the root directory of this project. | ||
*/ | ||
|
||
import { Component, ViewChild } from '@angular/core'; | ||
import { ClrWizard } from '@clr/angular'; | ||
|
||
@Component({ | ||
selector: 'clr-wizard-inline', | ||
templateUrl: './wizard-inline.demo.html', | ||
}) | ||
export class WizardInlineDemo { | ||
@ViewChild('wizard') wizard: ClrWizard; | ||
|
||
open = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters