mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #1488 - activeIndex for TabMenu
This commit is contained in:
parent
656e9501d6
commit
2495d6099a
3 changed files with 56 additions and 5 deletions
|
@ -10,6 +10,31 @@ const TabMenuProps = [
|
|||
type: "boolean",
|
||||
default: "true",
|
||||
description: "Defines if active route highlight should match the exact route path."
|
||||
},
|
||||
{
|
||||
name: "activeIndex",
|
||||
type: "number",
|
||||
default: "0",
|
||||
description: "Active index of menuitem."
|
||||
}
|
||||
];
|
||||
|
||||
const TabMenuEvents = [
|
||||
{
|
||||
name: "tab-change",
|
||||
description: "Callback to invoke when an active tab is changed.",
|
||||
arguments: [
|
||||
{
|
||||
name: "event.originalEvent",
|
||||
type: "object",
|
||||
description: "Original event"
|
||||
},
|
||||
{
|
||||
name: "event.index",
|
||||
type: "number",
|
||||
description: "Index of the selected tab"
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
|
@ -25,6 +50,7 @@ module.exports = {
|
|||
name: "TabMenu",
|
||||
description: "TabMenu is a navigation component that displays items as tab headers.",
|
||||
props: TabMenuProps,
|
||||
events: TabMenuEvents,
|
||||
slots: TabMenuSlots
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue