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

103 lines
2.6 KiB
JavaScript
Raw Normal View History

const RadioButtonProps = [
{
2022-09-14 14:26:41 +00:00
name: 'value',
type: 'any',
default: 'null',
description: 'Value of the checkbox.'
},
{
2022-09-14 14:26:41 +00:00
name: 'modelValue',
type: 'any',
default: 'null',
description: 'Value binding of the checkbox.'
},
{
2022-09-14 14:26:41 +00:00
name: 'name',
type: 'string',
default: 'null',
description: 'Name of the input element.'
},
{
2022-09-14 14:26:41 +00:00
name: 'disabled',
type: 'boolean',
default: 'false',
description: 'When present, it specifies that the element should be disabled.'
},
{
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: '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: '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: 'inputProps',
type: 'object',
default: 'null',
description: 'Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.'
},
{
2022-09-14 14:26:41 +00:00
name: 'aria-labelledby',
type: 'string',
default: 'null',
description: 'Establishes relationships between the component and label(s) where its value should be one or more element IDs.'
},
{
2022-09-14 14:26:41 +00:00
name: 'aria-label',
type: 'string',
default: 'null',
description: 'Used to define a string that labels the element.'
2023-05-05 15:20:34 +00:00
},
{
name: 'pt',
type: 'any',
default: 'null',
description: 'Uses to pass attributes to DOM elements inside the component.'
}
];
const RadioButtonEvents = [
{
2022-09-14 14:26:41 +00:00
name: 'click',
description: 'Callback to invoke on radio button click.',
arguments: [
{
2022-09-14 14:26:41 +00:00
name: 'event',
type: 'object',
description: 'Browser event'
}
]
},
{
2022-09-14 14:26:41 +00:00
name: 'change',
description: 'Callback to invoke on radio button value change.',
arguments: [
{
2022-09-14 14:26:41 +00:00
name: 'event',
type: 'object',
description: 'Browser event'
}
]
}
];
module.exports = {
radiobutton: {
2022-09-14 14:26:41 +00:00
name: 'RadioButton',
description: 'RadioButton is an extension to standard radio button element with theming.',
props: RadioButtonProps,
events: RadioButtonEvents
}
};