mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
parent updates for .d.ts files and apidoc
This commit is contained in:
parent
da84f55507
commit
8eea973282
30 changed files with 1171 additions and 393 deletions
20
components/lib/button/Button.d.ts
vendored
20
components/lib/button/Button.d.ts
vendored
|
@ -12,12 +12,12 @@ import { ComponentHooks } from '../basecomponent';
|
|||
import { PassThroughOptions } from '../passthrough';
|
||||
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
||||
|
||||
export declare type ButtonPassThroughOptionType = ButtonPassThroughAttributes | ((options: ButtonPassThroughMethodOptions) => ButtonPassThroughAttributes | string) | string | null | undefined;
|
||||
export declare type ButtonPassThroughOptionType<T = any> = ButtonPassThroughAttributes | ((options: ButtonPassThroughMethodOptions<T>) => ButtonPassThroughAttributes | string) | string | null | undefined;
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) option method.
|
||||
*/
|
||||
export interface ButtonPassThroughMethodOptions {
|
||||
export interface ButtonPassThroughMethodOptions<T> {
|
||||
/**
|
||||
* Defines instance.
|
||||
*/
|
||||
|
@ -33,7 +33,7 @@ export interface ButtonPassThroughMethodOptions {
|
|||
/**
|
||||
* Defines parent instance.
|
||||
*/
|
||||
parent: any;
|
||||
parent: T;
|
||||
/**
|
||||
* Defines passthrough(pt) options in global config.
|
||||
*/
|
||||
|
@ -44,27 +44,27 @@ export interface ButtonPassThroughMethodOptions {
|
|||
* Custom passthrough(pt) options.
|
||||
* @see {@link ButtonProps.pt}
|
||||
*/
|
||||
export interface ButtonPassThroughOptions {
|
||||
export interface ButtonPassThroughOptions<T = any> {
|
||||
/**
|
||||
* Used to pass attributes to the root's DOM element.
|
||||
*/
|
||||
root?: ButtonPassThroughOptionType;
|
||||
root?: ButtonPassThroughOptionType<T>;
|
||||
/**
|
||||
* Used to pass attributes to the loading icon's DOM element.
|
||||
*/
|
||||
loadingIcon?: ButtonPassThroughOptionType;
|
||||
loadingIcon?: ButtonPassThroughOptionType<T>;
|
||||
/**
|
||||
* Used to pass attributes to the icon's DOM element.
|
||||
*/
|
||||
icon?: ButtonPassThroughOptionType;
|
||||
icon?: ButtonPassThroughOptionType<T>;
|
||||
/**
|
||||
* Used to pass attributes to the label's DOM element.
|
||||
*/
|
||||
label?: ButtonPassThroughOptionType;
|
||||
label?: ButtonPassThroughOptionType<T>;
|
||||
/**
|
||||
* Used to pass attributes to the badge's DOM element.
|
||||
*/
|
||||
badge?: ButtonPassThroughOptionType;
|
||||
badge?: ButtonPassThroughOptionType<T>;
|
||||
/**
|
||||
* Used to manage all lifecycle hooks.
|
||||
* @see {@link BaseComponent.ComponentHooks}
|
||||
|
@ -171,7 +171,7 @@ export interface ButtonProps extends ButtonHTMLAttributes {
|
|||
* Used to pass attributes to DOM elements inside the component.
|
||||
* @type {ButtonPassThroughOptions}
|
||||
*/
|
||||
pt?: PassThrough<ButtonPassThroughOptions>;
|
||||
pt?: PassThrough<ButtonPassThroughOptions<any>>;
|
||||
/**
|
||||
* Used to configure passthrough(pt) options of the component.
|
||||
* @type {PassThroughOptions}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue