primevue-mirror/apps/showcase/api-generator/components/carousel.js

139 lines
3.4 KiB
JavaScript
Raw Normal View History

const CarouselProps = [
{
2022-09-14 14:26:41 +00:00
name: 'value',
type: 'array',
default: 'null',
description: 'An array of objects to display.'
},
{
2022-09-14 14:26:41 +00:00
name: 'page',
type: 'number',
default: 'null',
description: 'Index of the first item.'
},
{
2022-09-14 14:26:41 +00:00
name: 'circular',
type: 'boolean',
default: 'false',
description: 'Defines if scrolling would be infinite.'
},
{
2022-09-14 14:26:41 +00:00
name: 'autoplayInterval',
type: 'number',
default: 'null',
description: 'Time in milliseconds to scroll items automatically.'
},
{
2022-09-14 14:26:41 +00:00
name: 'numVisible',
type: 'number',
default: '1',
description: 'Number of items per page.'
},
{
2022-09-14 14:26:41 +00:00
name: 'numScroll',
type: 'number',
default: '1',
description: 'Number of items to scroll.'
},
{
2022-09-14 14:26:41 +00:00
name: 'responsiveOptions',
type: 'any',
default: 'null',
description: 'An array of options for responsive design.'
},
{
2022-09-14 14:26:41 +00:00
name: 'orientation',
type: 'string',
default: 'horizontal',
description: 'Specifies the layout of the component, valid values are "horizontal" and "vertical".'
},
{
2022-09-14 14:26:41 +00:00
name: 'verticalViewPortHeight',
type: 'string',
default: '300px',
description: 'Height of the viewport in vertical layout.'
},
{
2022-09-14 14:26:41 +00:00
name: 'contentClass',
type: 'string',
default: 'null',
description: 'Style class of main content.'
},
{
2022-09-14 14:26:41 +00:00
name: 'containerClass',
type: 'string',
default: 'null',
description: 'Style class of the viewport container.'
},
{
2022-09-14 14:26:41 +00:00
name: 'indicatorsContentClass',
type: 'string',
default: 'null',
description: 'Style class of the indicator items.'
},
{
2022-09-14 14:26:41 +00:00
name: 'showNavigators',
type: 'boolean',
default: 'true',
description: 'Whether to display navigation buttons in container.'
},
{
2022-09-14 14:26:41 +00:00
name: 'showIndicators',
type: 'boolean',
default: 'true',
description: 'Whether to display indicator container.'
2023-05-04 07:46:18 +00:00
},
{
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.'
2023-07-06 13:20:37 +00:00
},
{
name: 'unstyled',
type: 'boolean',
default: 'false',
description: 'When enabled, it removes component related styles in the core.'
}
];
const CarouselSlots = [
2023-04-18 13:42:36 +00:00
{
name: 'header',
description: 'Custom content for the component header.'
},
{
2022-09-14 14:26:41 +00:00
name: 'header',
description: 'Custom content for the component header.'
},
{
2022-09-14 14:26:41 +00:00
name: 'footer',
description: 'Custom content for the component footer.'
},
{
2022-09-14 14:26:41 +00:00
name: 'item',
description: 'Custom content for the component item.'
},
{
2024-05-27 08:48:42 +00:00
name: 'previcon',
description: 'Custom previous icon template.'
},
{
name: 'nexticon',
description: 'Custom next icon template.'
2024-03-18 03:28:01 +00:00
},
{
name: 'empty',
description: 'Custom content when there is no data to display.'
2024-04-02 13:24:46 +00:00
}
];
module.exports = {
carousel: {
2022-09-14 14:26:41 +00:00
name: 'Carousel',
description: 'Carousel is a content slider featuring various customization options.',
props: CarouselProps,
slots: CarouselSlots
}
};