@kushki/ng-suka
Version:
<p align="center"> <h1 align="center">Suka Components Angular</h1> <p align="center"> An Angular implementation of the Suka Design System </p> </p>
56 lines (55 loc) • 1.42 kB
TypeScript
import { EventEmitter } from '@angular/core';
import { ProgressStep } from './progress-step.interface';
export declare class Progress {
private _steps;
baseClass: boolean;
/**
* Set to `true` to make the progress linear. This allows the user to access any of the steps at any time (like tabs).
*/
linear: boolean;
/**
* Set to `true` to allow the user to edit a step after completed.
*/
editable: boolean;
/**
* Emits an event when a index is selected
*/
selected: EventEmitter<any>;
/**
* Emits an event when the steps change.
*/
stepsChange: EventEmitter<any>;
/**
* Sets the steps for the `Progress` component.
*/
steps: ProgressStep[];
select(newIndex: any): void;
/**
* Step is completed.
*/
isComplete(step: ProgressStep): boolean;
/**
* Step is editable.
*/
isEditable(step: ProgressStep): boolean;
/**
* Step is unclickable.
*/
isUnclickable(step: ProgressStep, index: number): boolean;
/**
* Returns the index of the next uncompleted step.
*/
getNextUncompletedStepIndex(): number;
/**
* Returns the current step.
*/
currentStep(): ProgressStep;
/**
* Returns the next step.
*/
nextStep(): ProgressStep;
/**
* Returns the current step index.
*/
getCurrentStepIndex(): number;
}