/* * Copyright (c) 2016 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 {Wizard} from 'clarity-angular/wizard/wizard'; import {CodeHighlight} from 'clarity-angular/code/code-highlight'; @Component({ selector: "clr-wizard-basic", templateUrl: "./wizard-basic.demo.html" }) export class WizardBasic { @ViewChild("wizardmd") wizardMedium: Wizard; @ViewChild("wizardlg") wizardLarge: Wizard; @ViewChild("wizardxlg") wizardDefault: Wizard; @ViewChild(CodeHighlight) codeHighlight: CodeHighlight; code: string = ` import {Component, ViewChild} from "@angular/core"; import {Wizard} from "clarity-angular"; @Component({ ... }) export class WizardSimple { @ViewChild("wizard") wizard: Wizard; open: boolean = false; // you can open the wizard by setting this variable to true // you can also open the wizard programmatically here by calling wizard.open() } `; html: string = `
Wizard Title
Step 1 Step 2 Step 3 Content for step 1 Content for step 2 Content for step 3
`; }