mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Update Timeline.d.ts
This commit is contained in:
parent
7cd5379af7
commit
fd632dad19
1 changed files with 20 additions and 1 deletions
21
components/lib/timeline/Timeline.d.ts
vendored
21
components/lib/timeline/Timeline.d.ts
vendored
|
@ -10,7 +10,16 @@ import { VNode } from 'vue';
|
|||
import { ComponentHooks } from '../basecomponent';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
export declare type TimelinePassThroughOptionType = TimelinePassThroughAttributes | null | undefined;
|
||||
export declare type TimelinePassThroughOptionType = TimelinePassThroughAttributes | ((options: TimelinePassThroughMethodOptions) => TimelinePassThroughAttributes | string) | string | null | undefined;
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) option method.
|
||||
*/
|
||||
export interface TimelinePassThroughMethodOptions {
|
||||
instance: any;
|
||||
props: TimelineProps;
|
||||
context: TimelineContext;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) options.
|
||||
|
@ -59,6 +68,16 @@ export interface TimelinePassThroughAttributes {
|
|||
[key: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines current options in Timeline component.
|
||||
*/
|
||||
export interface TimelineContext {
|
||||
/**
|
||||
* Current index of the item as a number.
|
||||
*/
|
||||
index: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in Timeline component.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue