mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Refactor #3879 - For Skeleton
This commit is contained in:
parent
51653f96f8
commit
cc7d0ccce2
3 changed files with 42 additions and 1 deletions
32
components/lib/skeleton/Skeleton.d.ts
vendored
32
components/lib/skeleton/Skeleton.d.ts
vendored
|
@ -9,6 +9,33 @@
|
|||
*/
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
export declare type SkeletonPassThroughOptionType = SkeletonPassThroughAttributes | ((options: SkeletonPassThroughMethodOptions) => SkeletonPassThroughAttributes) | null | undefined;
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) option method.
|
||||
*/
|
||||
export interface SkeletonPassThroughMethodOptions {
|
||||
props: SkeletonProps;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) options.
|
||||
* @see {@link SkeletonProps.pt}
|
||||
*/
|
||||
export interface SkeletonPassThroughOptions {
|
||||
/**
|
||||
* Uses to pass attributes to the root's DOM element.
|
||||
*/
|
||||
root?: SkeletonPassThroughOptionType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom passthrough attributes for each DOM elements
|
||||
*/
|
||||
export interface SkeletonPassThroughAttributes {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in Skeleton component.
|
||||
*/
|
||||
|
@ -41,6 +68,11 @@ export interface SkeletonProps {
|
|||
* @defaultValue wave
|
||||
*/
|
||||
animation?: 'wave' | 'none' | undefined;
|
||||
/**
|
||||
* Uses to pass attributes to DOM elements inside the component.
|
||||
* @type {SkeletonPassThroughOptions}
|
||||
*/
|
||||
pt?: SkeletonPassThroughOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue