primevue-mirror/apps/showcase/api-generator/components/inputswitch.js

81 lines
2.0 KiB
JavaScript
Raw Normal View History

const InputSwitchProps = [
{
2022-09-14 14:26:41 +00:00
name: 'modelValue',
type: 'boolean',
default: 'null',
description: 'Specifies whether a inputswitch should be checked or not.'
},
{
2022-09-14 14:26:41 +00:00
name: 'trueValue',
type: 'any',
default: 'null',
description: 'Value in checked state.'
},
{
2022-09-14 14:26:41 +00:00
name: 'falseValue',
type: 'any',
default: 'null',
description: 'Value in unchecked state.'
},
{
2022-09-14 14:26:41 +00:00
name: 'inputId',
type: 'string',
default: 'null',
description: 'Identifier of the underlying input element.'
},
{
2022-09-14 14:26:41 +00:00
name: 'inputStyle',
type: 'object',
2022-09-14 14:26:41 +00:00
default: 'null',
description: 'Inline style of the input field.'
},
{
2022-09-14 14:26:41 +00:00
name: 'inputClass',
type: 'string | object',
2022-09-14 14:26:41 +00:00
default: 'null',
description: 'Style class of the input field.'
},
{
2022-09-14 14:26:41 +00:00
name: 'inputProps',
type: 'object',
default: 'null',
2023-08-01 14:01:12 +00:00
description: 'Used to pass all properties of the HTMLInputElement to the focusable input element inside the component.'
2023-05-05 13:10:07 +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.'
}
];
const InputSwitchEvents = [
{
2022-09-14 14:26:41 +00:00
name: 'click',
description: 'Callback to invoke on click.'
},
{
2022-09-14 14:26:41 +00:00
name: 'change',
description: 'Callback to invoke on value change.'
},
{
2022-09-14 14:26:41 +00:00
name: 'input',
description: 'Callback to invoke on value change.'
}
];
module.exports = {
inputswitch: {
2022-09-14 14:26:41 +00:00
name: 'InputSwitch',
description: 'InputSwitch is used to select a boolean value.',
props: InputSwitchProps,
events: InputSwitchEvents
}
};