Make video widget extendable

This commit is contained in:
Hadi Nategh 2020-05-06 14:53:02 +02:00
parent da806d33f5
commit c6200f9969
2 changed files with 3 additions and 2 deletions

View File

@ -174,4 +174,5 @@ var et2_video = /** @class */ (function (_super) {
}; };
return et2_video; return et2_video;
}(et2_core_baseWidget_1.et2_baseWidget)); }(et2_core_baseWidget_1.et2_baseWidget));
exports.et2_video = et2_video;
//# sourceMappingURL=et2_widget_video.js.map //# sourceMappingURL=et2_widget_video.js.map

View File

@ -49,7 +49,7 @@ import {WidgetConfig} from "./et2_core_widget";
* *
* @augments et2_baseWidget * @augments et2_baseWidget
*/ */
class et2_video extends et2_baseWidget implements et2_IDOMNode export class et2_video extends et2_baseWidget implements et2_IDOMNode
{ {
static readonly _attributes: any = { static readonly _attributes: any = {
"video_src": { "video_src": {
@ -101,7 +101,7 @@ class et2_video extends et2_baseWidget implements et2_IDOMNode
super(_parent, _attrs, ClassWithAttributes.extendAttributes(et2_video._attributes, _child || {})); super(_parent, _attrs, ClassWithAttributes.extendAttributes(et2_video._attributes, _child || {}));
//Create Video tag //Create Video tag
this.video = jQuery(document.createElement("video")); this.video = jQuery(document.createElement("video"));
if (this.options.controls) if (this.options.controls)
{ {
this.video.attr("controls", 1); this.video.attr("controls", 1);