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

65 lines
1.6 KiB
JavaScript
Raw Normal View History

const DockProps = [
{
2022-09-14 14:26:41 +00:00
name: 'model',
type: 'object',
default: 'null',
description: 'MenuModel instance to define the action items.'
},
{
2022-09-14 14:26:41 +00:00
name: 'position',
type: 'string',
default: 'bottom',
description: "Position of element. Valid values are 'bottom', 'top', 'left' and 'right'."
},
{
2022-09-14 14:26:41 +00:00
name: 'class',
type: 'string',
default: 'null',
description: 'Style class of the element.'
},
{
2022-09-14 14:26:41 +00:00
name: 'style',
type: 'object',
default: 'null',
description: 'Inline style of the element.'
},
{
2022-09-14 14:26:41 +00:00
name: 'tooltipOptions',
type: 'object',
default: 'null',
description: "Whether to display the tooltip on items. The modifiers of tooltip can be used like an object in it. Valid keys are 'event' and 'position'."
2023-04-26 10:49:14 +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 DockSlots = [
{
2022-09-14 14:26:41 +00:00
name: 'item',
description: 'Custom content for the item.'
},
{
2022-09-14 14:26:41 +00:00
name: 'icon',
description: 'Custom content for the icon.'
}
];
module.exports = {
dock: {
2022-09-14 14:26:41 +00:00
name: 'Dock',
description: 'Dock is a navigation component consisting of menuitems.',
props: DockProps,
slots: DockSlots
}
2022-09-14 14:26:41 +00:00
};