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

41 lines
879 B
JavaScript
Raw Normal View History

2021-08-31 07:47:54 +00:00
const ImageProps = [
{
name: "preview",
type: "boolean",
default: "false",
description: "Controls the preview functionality."
}
];
const ImageEvents = [
{
name: "show",
description: "Triggered when the preview overlay is shown."
},
{
name: "hide",
description: "Triggered when the preview overlay is hidden."
2022-06-14 08:29:10 +00:00
},
{
name: "error",
description: "Triggered when an error occurs while loading an image file."
2021-08-31 07:47:54 +00:00
}
];
const ImageSlots = [
{
name: "indicator",
description: "Custom content for the preview indicator"
2021-08-31 08:32:47 +00:00
}
2021-08-31 07:47:54 +00:00
];
module.exports = {
image: {
name: "Image",
description: "Displays an image with preview and tranformation options.",
props: ImageProps,
events: ImageEvents,
slots: ImageSlots
}
};