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

183 lines
4.8 KiB
JavaScript
Raw Normal View History

const GalleriaProps = [
{
2022-09-14 14:26:41 +00:00
name: 'id',
type: 'string',
default: 'null',
description: 'Unique identifier of the element.'
},
{
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: 'activeIndex',
type: 'number',
default: '0',
description: 'Index of the first item.'
},
{
2022-09-14 14:26:41 +00:00
name: 'fullscreen',
type: 'boolean',
default: 'false',
description: 'Whether to display the component on fullscreen.'
},
{
2022-09-14 14:26:41 +00:00
name: 'visible',
type: 'boolean',
default: 'false',
description: 'Specifies the visibility of the mask on fullscreen mode.'
},
{
2022-09-14 14:26:41 +00:00
name: 'numVisible',
type: 'number',
default: '3',
description: 'Number of items per page.'
},
{
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: 'showItemNavigators',
type: 'boolean',
default: 'false',
description: 'Whether to display navigation buttons in item section.'
},
{
2022-09-14 14:26:41 +00:00
name: 'showThumbnailNavigators',
type: 'boolean',
default: 'true',
description: 'Whether to display navigation buttons in thumbnail container.'
},
{
2022-09-14 14:26:41 +00:00
name: 'showItemNavigatorsOnHover',
type: 'boolean',
default: 'false',
description: 'Whether to display navigation buttons on item hover.'
},
{
2022-09-14 14:26:41 +00:00
name: 'changeItemOnIndicatorHover',
type: 'boolean',
default: 'false',
description: 'When enabled, item is changed on indicator hover.'
},
{
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: 'autoPlay',
type: 'boolean',
default: 'false',
description: 'Items are displayed with a slideshow in autoPlay mode.'
},
{
2022-09-14 14:26:41 +00:00
name: 'transitionInterval',
type: 'number',
default: '4000',
description: 'Time in milliseconds to scroll items.'
},
{
2022-09-14 14:26:41 +00:00
name: 'showThumbnails',
type: 'boolean',
default: 'true',
description: 'Whether to display thumbnail container.'
},
{
2022-09-14 14:26:41 +00:00
name: 'thumbnailsPosition',
type: 'string',
default: 'bottom',
description: 'Position of thumbnails. Valid values are "bottom", "top", "left" and "right".'
},
{
2022-09-14 14:26:41 +00:00
name: 'verticalThumbnailViewPortHeight',
type: 'string',
default: '300px',
description: 'Height of the viewport in vertical thumbnail.'
},
{
2022-09-14 14:26:41 +00:00
name: 'showIndicators',
type: 'boolean',
default: 'false',
description: 'Whether to display indicator container.'
},
{
2022-09-14 14:26:41 +00:00
name: 'showIndicatorsOnItem',
type: 'boolean',
default: 'false',
description: 'When enabled, indicator container is displayed on item container.'
},
{
2022-09-14 14:26:41 +00:00
name: 'indicatorsPosition',
type: 'string',
default: 'bottom',
description: 'Position of indicators. Valid values are "bottom", "top", "left" and "right".'
},
{
2022-09-14 14:26:41 +00:00
name: 'baseZIndex',
type: 'number',
default: '0',
description: 'ase zIndex value to use in layering.'
},
{
2022-09-14 14:26:41 +00:00
name: 'maskClass',
type: 'string',
default: 'null',
description: 'Style class of the mask on fullscreen mode.'
},
{
2022-09-14 14:26:41 +00:00
name: 'containerStyle',
type: 'any',
default: 'null',
description: "Inline style of the component on fullscreen mode. Otherwise, the 'style' property can be used."
},
{
2022-09-14 14:26:41 +00:00
name: 'containerClass',
type: 'any',
default: 'null',
description: "Style class of the component on fullscreen mode. Otherwise, the 'class' property can be used."
}
];
const GalleriaSlots = [
{
2022-09-14 14:26:41 +00:00
name: 'header',
description: "Custom content for the component's header"
},
{
2022-09-14 14:26:41 +00:00
name: 'footer',
description: "Custom content for the component's header"
},
{
2022-09-14 14:26:41 +00:00
name: 'item',
description: 'Custom content for the item'
},
{
2022-09-14 14:26:41 +00:00
name: 'caption',
description: 'Custom caption content'
},
{
2022-09-14 14:26:41 +00:00
name: 'thumbnail',
description: 'Custom thumbnail content'
},
{
2022-09-14 14:26:41 +00:00
name: 'indicator',
description: 'Custom indicator content'
}
];
module.exports = {
galleria: {
2022-09-14 14:26:41 +00:00
name: 'Galleria',
description: 'Galleria is an advanced content gallery component.',
props: GalleriaProps,
slots: GalleriaSlots
}
};