primevue-mirror/api-generator/components/inputmask.js

65 lines
1.7 KiB
JavaScript
Raw Normal View History

const InputMaskProps = [
{
2022-09-14 14:26:41 +00:00
name: 'modelValue',
type: 'any',
default: 'null',
description: 'Value of the component.'
},
{
2022-09-14 14:26:41 +00:00
name: 'mask',
type: 'string',
default: 'null',
description: 'Mask pattern.'
},
{
2022-09-14 14:26:41 +00:00
name: 'slotChar',
type: 'string',
default: '-',
description: 'Placeholder character in mask, default is underscore.'
},
{
2022-09-14 14:26:41 +00:00
name: 'autoClear',
type: 'boolean',
default: 'true',
description: 'Clears the incomplete value on blur.'
},
{
2022-09-14 14:26:41 +00:00
name: 'unmask',
type: 'boolean',
default: 'false',
description: 'Defines if model sets the raw unmasked value to bound value or the formatted mask value.'
2023-05-05 11:08:41 +00:00
},
2024-01-31 08:01:02 +00:00
{
name: 'invalid',
type: 'boolean',
default: 'false',
description: 'When present, it specifies that the component should have invalid state style.'
},
{
name: 'variant',
type: 'string',
2024-02-02 13:26:27 +00:00
default: 'null',
2024-01-31 08:01:02 +00:00
description: 'Specifies the input variant of the component.'
},
2023-05-05 11:08:41 +00:00
{
name: 'pt',
type: 'any',
default: 'null',
2023-08-01 14:01:12 +00:00
description: 'Used to pass attributes to DOM elements inside the component.'
2023-07-06 13:20:37 +00:00
},
{
name: 'unstyled',
type: 'boolean',
default: 'false',
description: 'When enabled, it removes component related styles in the core.'
}
];
module.exports = {
inputmask: {
2022-09-14 14:26:41 +00:00
name: 'InputMask',
description: 'InputMask component is used to enter input in a certain format such as numeric, date, currency, email and phone.',
props: InputMaskProps
}
};