mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #3924 - For Timeline
This commit is contained in:
parent
66f615ad71
commit
6587650287
4 changed files with 66 additions and 7 deletions
49
components/lib/timeline/Timeline.d.ts
vendored
49
components/lib/timeline/Timeline.d.ts
vendored
|
@ -9,6 +9,50 @@
|
|||
import { VNode } from 'vue';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
export declare type TimelinePassThroughOptionType = TimelinePassThroughAttributes | null | undefined;
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) options.
|
||||
* @see {@link TimelineProps.pt}
|
||||
*/
|
||||
export interface TimelinePassThroughOptions {
|
||||
/**
|
||||
* Uses to pass attributes to the root's DOM element.
|
||||
*/
|
||||
root?: TimelinePassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the event's DOM element.
|
||||
*/
|
||||
event?: TimelinePassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the opposite's DOM element.
|
||||
*/
|
||||
opposite?: TimelinePassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the separator's DOM element.
|
||||
*/
|
||||
separator?: TimelinePassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the marker's DOM element.
|
||||
*/
|
||||
marker?: TimelinePassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the connector's DOM element.
|
||||
*/
|
||||
connector?: TimelinePassThroughOptionType;
|
||||
/**
|
||||
* Uses to pass attributes to the content's DOM element.
|
||||
*/
|
||||
content?: TimelinePassThroughOptionType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom passthrough attributes for each DOM elements
|
||||
*/
|
||||
export interface TimelinePassThroughAttributes {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in Timeline component.
|
||||
*/
|
||||
|
@ -31,6 +75,11 @@ export interface TimelineProps {
|
|||
* Name of the field that uniquely identifies the a record in the data.
|
||||
*/
|
||||
dataKey?: string | undefined;
|
||||
/**
|
||||
* Uses to pass attributes to DOM elements inside the component.
|
||||
* @type {TimelinePassThroughOptions}
|
||||
*/
|
||||
pt?: TimelinePassThroughOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue