mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #4196 - For Steps
This commit is contained in:
parent
e01a3f1f36
commit
974a963218
3 changed files with 38 additions and 8 deletions
21
components/lib/steps/Steps.d.ts
vendored
21
components/lib/steps/Steps.d.ts
vendored
|
@ -20,6 +20,7 @@ export declare type StepsPassThroughOptionType = StepsPassThroughAttributes | ((
|
|||
export interface StepsPassThroughMethodOptions {
|
||||
instance: any;
|
||||
props: StepsProps;
|
||||
context: StepsContext;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -65,6 +66,26 @@ export interface StepsPassThroughAttributes {
|
|||
[key: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines current options in Steps component.
|
||||
*/
|
||||
export interface StepsContext {
|
||||
/**
|
||||
* Index of the menuitem.
|
||||
*/
|
||||
index: number;
|
||||
/**
|
||||
* Current active state of menuitem as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
active: boolean;
|
||||
/**
|
||||
* Current disabled state of menuitem as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
disabled: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in Steps component.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue