diff --git a/api-generator/components/image.js b/api-generator/components/image.js index 6125a357b..da1460ca5 100644 --- a/api-generator/components/image.js +++ b/api-generator/components/image.js @@ -11,6 +11,18 @@ const ImageProps = [ default: 'pi pi-eye', description: 'Custom indicator icon.' }, + { + name: 'zoomInDisabled', + type: 'boolean', + default: 'false', + description: 'Disable the zoom-in button' + }, + { + name: 'zoomOutDisabled', + type: 'boolean', + default: 'false', + description: 'Disable the zoom-out button' + }, { name: 'pt', type: 'any', diff --git a/components/lib/image/Image.d.ts b/components/lib/image/Image.d.ts index 2903efee1..8e18afe06 100644 --- a/components/lib/image/Image.d.ts +++ b/components/lib/image/Image.d.ts @@ -153,6 +153,16 @@ export interface ImageProps { * @deprecated since v3.27.0. Use 'indicator' slot. */ indicatorIcon?: string; + /** + * Disable the zoom-in button + * @defaultValue false + */ + zoomInDisabled?: boolean | undefined; + /** + * Disable the zoom-out button + * @defaultValue false + */ + zoomOutDisabled?: boolean | undefined; /** * Uses to pass attributes to DOM elements inside the component. * @type {ImagePassThroughOptions} diff --git a/components/lib/image/Image.vue b/components/lib/image/Image.vue index 9a2ede1d2..0f6770bb8 100644 --- a/components/lib/image/Image.vue +++ b/components/lib/image/Image.vue @@ -23,13 +23,13 @@ - -