clr-angular-static-fix
Version:
1. Install Clarity Icons package through npm:
116 lines (100 loc) • 3.56 kB
text/typescript
/*
* Copyright (c) 2016-2018 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 '../wizard';
export class TemplateApiWizardTestComponent {
wizard: ClrWizard;
mySize: string;
projectedTitle = 'My Great Title';
projectedPageTitle = 'Title for Page 2';
open: boolean = true;
lazyLoadContent: string = 'Loading';
projectedContent = 'Projection Projection';
projectedButton = 'Click Me';
projectedCustomButton = 'Custom';
showExtraPage = false;
stopCancel = false;
customFinish(): void {
this.wizard.finish(false);
}
doLazyLoad(): void {
setTimeout(() => {
this.lazyLoadContent = 'Content loaded!';
});
}
_openChange = 0;
onOpenChange(): void {
this.open = this.wizard._open;
this._openChange++;
}
_pagesLoaded = 0;
handleOnLoad(): void {
this._pagesLoaded++;
}
_firstPageLoaded = 0;
firstPageLoad(): void {
this._firstPageLoaded++;
}
_currentPageChanged = 0;
handleCurrentChange(): void {
this._currentPageChanged++;
}
_movedForward = 0;
handleOnNext(): void {
this._movedForward++;
}
_movedBackward = 0;
handleOnPrevious(): void {
this._movedBackward++;
}
_cancelled = 0;
handleOnCancel(): void {
this._cancelled++;
}
_finished = 0;
handleOnFinish(): void {
this._finished++;
}
}