Api docs for image

This commit is contained in:
Cagatay Civici 2021-08-31 10:47:54 +03:00
parent 928e98034e
commit ed8dbcb7da
2 changed files with 44 additions and 8 deletions

View file

@ -0,0 +1,36 @@
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."
}
];
const ImageSlots = [
{
name: "indicator",
description: "Custom content for the preview indicator"
}-
];
module.exports = {
image: {
name: "Image",
description: "Displays an image with preview and tranformation options.",
props: ImageProps,
events: ImageEvents,
slots: ImageSlots
}
};