mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #3922 - For InputMask
This commit is contained in:
parent
80300daa8f
commit
003c8b7127
4 changed files with 36 additions and 1 deletions
25
components/lib/inputmask/InputMask.d.ts
vendored
25
components/lib/inputmask/InputMask.d.ts
vendored
|
@ -9,6 +9,26 @@
|
|||
*/
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
export declare type InputMaskPassThroughOptionType = InputMaskPassThroughAttributes | null | undefined;
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) options.
|
||||
* @see {@link InputMaskProps.pt}
|
||||
*/
|
||||
export interface InputMaskPassThroughOptions {
|
||||
/**
|
||||
* Uses to pass attributes to the root's DOM element.
|
||||
*/
|
||||
root?: InputMaskPassThroughOptionType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom passthrough attributes for each DOM elements
|
||||
*/
|
||||
export interface InputMaskPassThroughAttributes {
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in InputMask component.
|
||||
*/
|
||||
|
@ -41,6 +61,11 @@ export interface InputMaskProps {
|
|||
* @defaultValue false
|
||||
*/
|
||||
readonly?: boolean | undefined;
|
||||
/**
|
||||
* Uses to pass attributes to DOM elements inside the component.
|
||||
* @type {InputMaskPassThroughOptions}
|
||||
*/
|
||||
pt?: InputMaskPassThroughOptions;
|
||||
}
|
||||
|
||||
export interface InputMaskSlots {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue