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

59 lines
1.5 KiB
JavaScript
Raw Normal View History

2021-05-12 09:35:29 +00:00
const TabViewProps = [
{
name: "activeIndex",
type: "number",
default: "0",
description: "Index of the active tab."
},
2021-08-31 06:47:07 +00:00
{
name: "scrollable",
type: "boolean",
default: "false",
2021-08-31 12:53:48 +00:00
description: "When enabled displays buttons at each side of the tab headers to scroll the tab list."
2021-05-12 09:35:29 +00:00
}
];
2022-08-22 13:47:07 +00:00
const TabViewEvents = [
{
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"
}
]
},
{
name: "tab-click",
description: "Callback to invoke when an active tab is clicked.",
arguments: [
{
name: "event.originalEvent",
type: "object",
description: "Original event"
},
{
name: "event.index",
type: "number",
description: "Index of the selected tab"
}
]
}
];
2021-05-12 09:35:29 +00:00
module.exports = {
tabview: {
name: "TabView",
description: "TabView is a container component to group content with tabs.",
2022-08-22 13:47:07 +00:00
props: TabViewProps,
events: TabViewEvents
2021-05-12 09:35:29 +00:00
}
};