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

86 lines
2.0 KiB
JavaScript
Raw Normal View History

const SplitButtonProps = [
{
2022-09-14 14:26:41 +00:00
name: 'label',
type: 'string',
default: 'null',
description: 'Text of the button.'
},
{
2022-09-14 14:26:41 +00:00
name: 'icon',
type: 'string',
default: 'null',
description: 'Name of the icon.'
},
{
2022-09-14 14:26:41 +00:00
name: 'model',
type: 'object',
default: 'null',
description: 'MenuModel instance to define the overlay items.'
},
{
2022-09-14 14:26:41 +00:00
name: 'autoZIndex',
type: 'boolean',
default: 'true',
description: 'Whether to automatically manage layering.'
},
{
2022-09-14 14:26:41 +00:00
name: 'baseZIndex',
type: 'number',
default: '0',
description: 'Base zIndex value to use in layering.'
},
{
2022-09-14 14:26:41 +00:00
name: 'appendTo',
type: 'string',
default: 'body',
description: 'A valid query selector or an HTMLElement to specify where the overlay gets attached.'
},
{
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: 'class',
type: 'string',
default: 'null',
description: 'Style class of the component.'
},
{
2022-09-14 14:26:41 +00:00
name: 'style',
type: 'any',
default: 'null',
description: 'Inline of the component.'
},
{
name: 'menuButtonIcon',
type: 'string',
default: 'null',
description: 'Name of the menu button icon.'
}
];
const SplitButtonEvents = [
{
2022-09-14 14:26:41 +00:00
name: 'click',
description: 'Callback to invoke when main button is clicked.',
arguments: [
{
2022-09-14 14:26:41 +00:00
name: 'event',
type: 'object',
description: 'Browser event'
}
]
}
];
module.exports = {
splitbutton: {
2022-09-14 14:26:41 +00:00
name: 'SplitButton',
description: 'SplitButton groups a set of commands in an overlay with a default command.',
props: SplitButtonProps,
events: SplitButtonEvents
}
};