primeng
Version:
[](https://badge.fury.io/js/primeng) [](https://www.npmjs.com/package/primeng) [ • 2.43 kB
TypeScript
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { MenuItem } from 'primeng/api';
import { Subscription } from 'rxjs';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@angular/router";
import * as i3 from "primeng/tooltip";
export declare class Steps implements OnInit, OnDestroy {
private router;
private route;
private cd;
/**
* Index of the active item.
* @group Props
*/
activeIndex: number;
/**
* An array of menuitems.
* @group Props
*/
model: MenuItem[] | undefined;
/**
* Whether the items are clickable or not.
* @group Props
*/
readonly: boolean;
/**
* Inline style of the component.
* @group Props
*/
style: {
[klass: string]: any;
} | null | undefined;
/**
* Style class of the component.
* @group Props
*/
styleClass: string | undefined;
/**
* Callback to invoke when the new step is selected.
* @param {number} number - current index.
* @group Emits
*/
activeIndexChange: EventEmitter<number>;
constructor(router: Router, route: ActivatedRoute, cd: ChangeDetectorRef);
subscription: Subscription | undefined;
ngOnInit(): void;
itemClick(event: Event, item: MenuItem, i: number): void;
isClickableRouterLink(item: MenuItem): boolean;
isActive(item: MenuItem, index: number): boolean;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<Steps, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<Steps, "p-steps", never, { "activeIndex": { "alias": "activeIndex"; "required": false; }; "model": { "alias": "model"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; }, { "activeIndexChange": "activeIndexChange"; }, never, never, false, never>;
}
export declare class StepsModule {
static ɵfac: i0.ɵɵFactoryDeclaration<StepsModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<StepsModule, [typeof Steps], [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.TooltipModule], [typeof Steps, typeof i2.RouterModule, typeof i3.TooltipModule]>;
static ɵinj: i0.ɵɵInjectorDeclaration<StepsModule>;
}