mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Convert to PrimeVue monorepo
This commit is contained in:
parent
970ba75b06
commit
61929eae75
4144 changed files with 59008 additions and 36177 deletions
128
packages/primevue/scripts/components/tabview.js
Normal file
128
packages/primevue/scripts/components/tabview.js
Normal file
|
@ -0,0 +1,128 @@
|
|||
const TabViewProps = [
|
||||
{
|
||||
name: 'activeIndex',
|
||||
type: 'number',
|
||||
default: '0',
|
||||
description: 'Index of the active tab.'
|
||||
},
|
||||
{
|
||||
name: 'lazy',
|
||||
type: 'boolean',
|
||||
default: 'false',
|
||||
description: 'When enabled, hidden tabs are not rendered at all. Defaults to false that hides tabs with css.'
|
||||
},
|
||||
{
|
||||
name: 'scrollable',
|
||||
type: 'boolean',
|
||||
default: 'false',
|
||||
description: 'When enabled displays buttons at each side of the tab headers to scroll the tab list.'
|
||||
},
|
||||
{
|
||||
name: 'tabindex',
|
||||
type: 'number',
|
||||
default: '0',
|
||||
description: 'Index of the element in tabbing order.'
|
||||
},
|
||||
{
|
||||
name: 'selectOnFocus',
|
||||
type: 'boolean',
|
||||
default: 'false',
|
||||
description: 'When enabled, the focused tab is activated.'
|
||||
},
|
||||
{
|
||||
name: 'prevButtonProps',
|
||||
type: 'any',
|
||||
default: 'null',
|
||||
description: 'Used to pass all properties of the HTMLButtonElement to the previous button.'
|
||||
},
|
||||
{
|
||||
name: 'nextButtonProps',
|
||||
type: 'any',
|
||||
default: 'null',
|
||||
description: 'Used to pass all properties of the HTMLButtonElement to the next button.'
|
||||
},
|
||||
{
|
||||
name: 'prevIcon',
|
||||
type: 'string',
|
||||
default: 'null',
|
||||
description: 'Prev icon of the scrollable tabview.'
|
||||
},
|
||||
{
|
||||
name: 'nextIcon',
|
||||
type: 'string',
|
||||
default: 'null',
|
||||
description: 'Next icon of the scrollable tabview.'
|
||||
},
|
||||
{
|
||||
name: 'pt',
|
||||
type: 'any',
|
||||
default: 'null',
|
||||
description: 'Used to pass attributes to DOM elements inside the component.'
|
||||
},
|
||||
{
|
||||
name: 'unstyled',
|
||||
type: 'boolean',
|
||||
default: 'false',
|
||||
description: 'When enabled, it removes component related styles in the core.'
|
||||
}
|
||||
];
|
||||
|
||||
const TabViewEvents = [
|
||||
{
|
||||
name: 'tab-change',
|
||||
description: 'Callback to invoke when an active tab is changed.',
|
||||
arguments: [
|
||||
{
|
||||
name: 'originalEvent',
|
||||
type: 'object',
|
||||
description: 'Original event'
|
||||
},
|
||||
{
|
||||
name: 'index',
|
||||
type: 'number',
|
||||
description: 'Index of the selected tab'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'tab-click',
|
||||
description: 'Callback to invoke when an active tab is clicked.',
|
||||
arguments: [
|
||||
{
|
||||
name: 'originalEvent',
|
||||
type: 'object',
|
||||
description: 'Original event'
|
||||
},
|
||||
{
|
||||
name: 'index',
|
||||
type: 'number',
|
||||
description: 'Index of the clicked tab'
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
const TabViewSlots = [
|
||||
{
|
||||
name: 'default',
|
||||
description: 'Default slot to detect TabPanel components.'
|
||||
},
|
||||
{
|
||||
name: 'previcon',
|
||||
description: 'Previous button icon template for the scrollable component.'
|
||||
},
|
||||
{
|
||||
name: 'nexticon',
|
||||
description: 'Next button icon template for the scrollable component.'
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
tabview: {
|
||||
name: 'TabView',
|
||||
description: 'TabView is a container component to group content with tabs.',
|
||||
props: TabViewProps,
|
||||
event: TabViewEvents,
|
||||
slots: TabViewSlots
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue