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

108 lines
2.7 KiB
JavaScript
Raw Permalink Normal View History

const TabPanelProps = [
{
2022-09-14 14:26:41 +00:00
name: 'header',
type: 'string',
default: 'null',
description: 'Orientation of tab headers.'
},
{
2022-09-14 14:26:41 +00:00
name: 'headerStyle',
type: 'any',
default: 'null',
description: 'Inline style of the tab header.'
},
{
2022-09-14 14:26:41 +00:00
name: 'headerClass',
type: 'any',
default: 'null',
description: 'Style class of the tab header.'
},
{
2022-09-14 14:26:41 +00:00
name: 'headerProps',
type: 'any',
default: 'null',
2023-08-01 14:01:12 +00:00
description: 'Used to pass all properties of the HTMLLiElement to the tab header.'
},
{
2022-09-14 14:26:41 +00:00
name: 'headerActionProps',
type: 'any',
default: 'null',
2023-08-01 14:01:12 +00:00
description: 'Used to pass all properties of the HTMLAnchorElement to the focusable anchor element inside the tab header.'
},
{
2022-09-14 14:26:41 +00:00
name: 'contentStyle',
type: 'any',
default: 'null',
description: 'Inline style of the tab content.'
},
{
2022-09-14 14:26:41 +00:00
name: 'contentClass',
type: 'any',
default: 'null',
description: 'Style class of the tab content.'
},
{
2022-09-14 14:26:41 +00:00
name: 'contentProps',
type: 'any',
default: 'null',
2023-08-01 14:01:12 +00:00
description: 'Used to pass all properties of the HTMLDivElement to the tab content.'
},
{
2022-09-14 14:26:41 +00:00
name: 'disabled',
type: 'boolean',
default: 'null',
description: 'Whether the tab is disabled.'
},
{
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.'
}
];
const TabPanelEvents = [
{
2022-09-14 14:26:41 +00:00
name: 'tab-change',
description: 'Callback to invoke when an active tab is changed.',
arguments: [
{
2022-09-14 14:26:41 +00:00
name: 'event.originalEvent',
type: 'object',
description: 'Original event'
},
{
2022-09-14 14:26:41 +00:00
name: 'event.index',
type: 'number',
description: 'Index of the selected tab'
}
]
},
{
2022-09-14 14:26:41 +00:00
name: 'tab-click',
description: 'Callback to invoke when an active tab is clicked.',
arguments: [
{
2022-09-14 14:26:41 +00:00
name: 'event.originalEvent',
type: 'object',
description: 'Original event'
},
{
2022-09-14 14:26:41 +00:00
name: 'event.index',
type: 'number',
description: 'Index of the selected tab'
}
]
}
];
module.exports = {
tabpanel: {
2022-09-14 14:26:41 +00:00
name: 'TabPanel',
description: 'TabView element consists of one or more TabPanel elements.',
'doc-url': 'tabview',
props: TabPanelProps,
events: TabPanelEvents
}
};