diff --git a/api/js/etemplate/et2_widget_iframe.js b/api/js/etemplate/et2_widget_iframe.js index 27d60f33d2..658eb471b5 100644 --- a/api/js/etemplate/et2_widget_iframe.js +++ b/api/js/etemplate/et2_widget_iframe.js @@ -65,6 +65,10 @@ var et2_iframe = /** @class */ (function (_super) { this.options.name = _name; this.htmlNode.attr('name', _name); }; + et2_iframe.prototype.set_allow = function (_allow) { + this.options.allow = _allow; + this.htmlNode.attr('allow', _allow); + }; /** * Make it look like part of the containing document * @@ -158,6 +162,12 @@ var et2_iframe = /** @class */ (function (_super) { "default": "", description: "Specifies URL for the iframe", type: "string" + }, + allow: { + name: "Allow", + "default": "", + description: "Specifies list of allow features, e.g. camera", + type: "string" } }; return et2_iframe;