mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Api docs for image
This commit is contained in:
parent
928e98034e
commit
ed8dbcb7da
2 changed files with 44 additions and 8 deletions
36
api-generator/components/image.js
Normal file
36
api-generator/components/image.js
Normal 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
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue