Skip to content

Commit 6bf0836

Browse files
committed
fix: adding allow zoom option in image element
1 parent 117269e commit 6bf0836

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Elements/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ class Elements extends Base {
157157
* @param {('default'|'none'|'small'|'medium'|'large'|'extraLarge'|'padding')|(Spacing.default|Spacing.none|Spacing.small|Spacing.medium|Spacing.large|Spacing.xl|Spacing.padding)} [spacing] field spacing. one of this.Spacing
158158
* @param {String} [id] id for the field.
159159
* @param {Boolean} [isVisible = true] Show field. Defaults to true.
160+
* @param {Boolean} [allowZoom = false] Show arrow icon at the top right to allow image zoom. Defaults to false
160161
* @return {object} image element.
161162
*/
162163
image({
@@ -173,6 +174,7 @@ class Elements extends Base {
173174
spacing,
174175
id,
175176
isVisible = true,
177+
allowZoom = false,
176178
}) {
177179
return {
178180
type: "Image",
@@ -189,6 +191,7 @@ class Elements extends Base {
189191
spacing,
190192
id,
191193
isVisible,
194+
msTeams: allowZoom ? { allowExpand: true } : {},
192195
};
193196
}
194197

0 commit comments

Comments
 (0)