Card, AvatarGroup .d.ts updates

pull/5313/head
tugcekucukoglu 2024-02-20 11:16:34 +03:00
parent 44e640bfb4
commit 74348786fa
2 changed files with 52 additions and 4 deletions

View File

@ -2,7 +2,7 @@
*
* A set of Avatars can be displayed together using the AvatarGroup component.
*
* [Live Demo](https://www.primevue.org/accordion/)
* [Live Demo](https://www.primevue.org/avatar/)
*
* @module avatargroup
*
@ -12,7 +12,33 @@ import { ComponentHooks } from '../basecomponent';
import { PassThroughOptions } from '../passthrough';
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
export declare type AvatarGroupPassThroughOptionType = AvatarGroupPassThroughAttributes | null | undefined;
export declare type AvatarGroupPassThroughOptionType = AvatarGroupPassThroughAttributes | ((options: AvatarGroupPassThroughMethodOptions) => AvatarGroupPassThroughAttributes | string) | string | null | undefined;
/**
* Custom passthrough(pt) option method.
*/
export interface AvatarGroupPassThroughMethodOptions {
/**
* Defines instance.
*/
instance: any;
/**
* Defines valid properties.
*/
props: AvatarGroupProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/
parent: any;
/**
* Defines passthrough(pt) options in global config.
*/
global: object | undefined;
}
/**
* Custom passthrough attributes for each DOM elements
@ -78,7 +104,7 @@ export interface AvatarGroupEmits {}
*
* _A set of Avatars can be displayed together using the AvatarGroup component._
*
* [Live Demo](https://www.primevue.org/avatargroup/)
* [Live Demo](https://www.primevue.org/avatar/)
* --- ---
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
*

View File

@ -12,7 +12,29 @@ import { ComponentHooks } from '../basecomponent';
import { PassThroughOptions } from '../passthrough';
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
export declare type CardPassThroughOptionType = CardPassThroughAttributes | null | undefined;
export declare type CardPassThroughOptionType = CardPassThroughAttributes | ((options: CardPassThroughMethodOptions) => CardPassThroughAttributes | string) | string | null | undefined;
/**
* Custom passthrough(pt) option method.
*/
export interface CardPassThroughMethodOptions {
/**
* Defines instance.
*/
instance: any;
/**
* Defines valid properties.
*/
props: CardProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines passthrough(pt) options in global config.
*/
global: object | undefined;
}
/**
* Custom passthrough(pt) options.