mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Pages route change - api generator added
This commit is contained in:
parent
28b8e0a7e0
commit
3eac7d6658
179 changed files with 10592 additions and 5 deletions
44
api-generator/components/megamenu.js
Normal file
44
api-generator/components/megamenu.js
Normal file
|
@ -0,0 +1,44 @@
|
|||
const MegaMenuProps = [
|
||||
{
|
||||
name: "modelValue",
|
||||
type: "array",
|
||||
default: "null",
|
||||
description: "An array of menuitems."
|
||||
},
|
||||
{
|
||||
name: "orientation",
|
||||
type: "string",
|
||||
default: "horizontal",
|
||||
description: "Defines the orientation, valid values are horizontal and vertical."
|
||||
},
|
||||
{
|
||||
name: "exact",
|
||||
type: "boolean",
|
||||
default: "true",
|
||||
description: "Whether to apply 'router-link-active-exact' class if route exactly matches the item path."
|
||||
}
|
||||
];
|
||||
|
||||
const MegaMenuSlots = [
|
||||
{
|
||||
name: "start",
|
||||
description: "Custom content before the content"
|
||||
},
|
||||
{
|
||||
name: "end",
|
||||
description: "Custom content after the content"
|
||||
},
|
||||
{
|
||||
name: "item",
|
||||
description: "Template of a menuitem."
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
megamenu: {
|
||||
name: "MegaMenu",
|
||||
description: "MegaMenu is navigation component that displays submenus together.",
|
||||
props: MegaMenuProps,
|
||||
slots: MegaMenuSlots
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue