mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Styles imported. Components added
This commit is contained in:
parent
3cb3910561
commit
8264983db4
452 changed files with 55902 additions and 0 deletions
73
components/dynamicdialogoptions/DynamicDialogOptions.d.ts
vendored
Normal file
73
components/dynamicdialogoptions/DynamicDialogOptions.d.ts
vendored
Normal file
|
@ -0,0 +1,73 @@
|
|||
import { DialogProps } from '../dialog';
|
||||
|
||||
export type DynamicDialogCloseType = 'config-close' | 'dialog-close' | undefined;
|
||||
|
||||
export interface DynamicDialogTemplates {
|
||||
/**
|
||||
* Custom header template.
|
||||
*/
|
||||
header?: any;
|
||||
/**
|
||||
* Custom footer template.
|
||||
*/
|
||||
footer?: any;
|
||||
}
|
||||
|
||||
export interface DynamicDialogCloseOptions {
|
||||
/**
|
||||
* Custom data object
|
||||
*/
|
||||
data?: any;
|
||||
/**
|
||||
* Close type
|
||||
* @see DynamicDialogCloseType
|
||||
*/
|
||||
type: DynamicDialogCloseType;
|
||||
}
|
||||
|
||||
export interface DynamicDialogOptions {
|
||||
/**
|
||||
* Dialog Props
|
||||
* @see DialogProps
|
||||
*/
|
||||
props?: DialogProps;
|
||||
/**
|
||||
* Dialog Slots
|
||||
* @see DynamicDialogTemplates
|
||||
*/
|
||||
templates?: DynamicDialogTemplates;
|
||||
/**
|
||||
* Custom data object
|
||||
*/
|
||||
data?: any;
|
||||
/**
|
||||
* Closes the dialog.
|
||||
* @see DynamicDialogCloseOptions
|
||||
*/
|
||||
onClose?(options?: DynamicDialogCloseOptions): void;
|
||||
/**
|
||||
* Optional
|
||||
*/
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export interface DynamicDialogInstance {
|
||||
/**
|
||||
* Dynamic component for content template
|
||||
*/
|
||||
content: any;
|
||||
/**
|
||||
* Instance options
|
||||
* @see DynamicDialogOptions
|
||||
*/
|
||||
options: DynamicDialogOptions;
|
||||
/**
|
||||
* Custom data object
|
||||
*/
|
||||
data: any;
|
||||
/**
|
||||
* Closes the dialog.
|
||||
* @param {*} params - Parameters sent by the user to the root instance
|
||||
*/
|
||||
close: (params?: any) => void;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue