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

69 lines
1.6 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: 'any',
default: 'null',
description: 'Inline style of the input field.'
},
{
2022-09-14 14:26:41 +00:00
name: 'inputClass',
type: 'string',
default: 'null',
description: 'Style class of the input field.'
},
{
2022-09-14 14:26:41 +00:00
name: 'inputProps',
type: 'object',
default: 'null',
description: 'Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.'
}
];
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
}
};