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

115 lines
2.8 KiB
JavaScript
Raw Permalink Normal View History

const SidebarProps = [
{
2022-09-14 14:26:41 +00:00
name: 'visible',
type: 'boolean',
default: 'false',
description: 'Specifies the visibility of the dialog.'
},
{
2022-09-14 14:26:41 +00:00
name: 'position',
type: 'string',
default: 'left',
description: 'Specifies the position of the sidebar, valid values are "left", "right", "top", "bottom" and "full".'
},
{
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: 'autoZIndex',
type: 'boolean',
default: 'true',
description: 'Whether to automatically manage layering.'
},
{
2022-09-14 14:26:41 +00:00
name: 'dismissable',
type: 'boolean',
default: 'true',
description: 'Whether clicking outside closes the panel.'
},
{
2022-09-14 14:26:41 +00:00
name: 'showCloseIcon',
type: 'boolean',
default: 'true',
description: 'Whether to display a close icon inside the panel.'
},
{
2022-09-14 14:26:41 +00:00
name: 'modal',
type: 'boolean',
default: 'true',
description: 'Whether to a modal layer behind the sidebar.'
},
{
2022-09-14 14:26:41 +00:00
name: 'ariaCloseLabel',
type: 'string',
default: 'close',
description: 'Aria label of the close icon.'
2023-01-04 10:12:04 +00:00
},
{
name: 'blockScroll',
type: 'boolean',
default: 'false',
description: 'Whether background scroll should be blocked when sidebar is visible.'
},
{
name: 'closeIcon',
type: 'string',
default: 'undefined',
description: 'Icon to display in the sidebar close button.'
2023-04-24 11:44:52 +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 SidebarEvents = [
{
2022-09-14 14:26:41 +00:00
name: 'hide',
description: 'Callback to invoke when sidebar gets hidden.'
},
{
2022-09-14 14:26:41 +00:00
name: 'show',
description: 'Callback to invoke when sidebar gets shown.'
},
{
name: 'closeicon',
description: 'Custom close icon template.'
}
];
const SidebarSlots = [
{
2022-09-14 14:26:41 +00:00
name: 'header',
description: 'Custom content for the component header.'
2023-04-18 13:42:36 +00:00
},
{
name: 'closeicon',
description: 'Custom close icon template.'
2023-09-19 10:23:58 +00:00
},
{
name: 'container',
description: 'Custom container template.'
}
];
module.exports = {
sidebar: {
2022-09-14 14:26:41 +00:00
name: 'Sidebar',
description: 'Sidebar is a panel component displayed as an overlay at the edges of the screen.',
props: SidebarProps,
events: SidebarEvents,
slots: SidebarSlots
}
};