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

53 lines
1.3 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
},
{
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
}
};