diff --git a/api/js/etemplate/et2_core_baseWidget.js b/api/js/etemplate/et2_core_baseWidget.js index 5d7d17dfca..c328c50eef 100644 --- a/api/js/etemplate/et2_core_baseWidget.js +++ b/api/js/etemplate/et2_core_baseWidget.js @@ -317,7 +317,7 @@ var et2_container = /** @class */ (function (_super) { * * @param _id is the id you're searching for */ - et2_container.prototype.getValueWidgetById = function (_id) { + et2_container.prototype.getInputWidgetById = function (_id) { var widget = this.getWidgetById(_id); if (widget && widget.instanceOf(et2_valueWidget)) { return widget; diff --git a/api/js/etemplate/et2_core_baseWidget.ts b/api/js/etemplate/et2_core_baseWidget.ts index 156a2a2a7b..843fe14221 100644 --- a/api/js/etemplate/et2_core_baseWidget.ts +++ b/api/js/etemplate/et2_core_baseWidget.ts @@ -387,12 +387,12 @@ export class et2_container extends et2_baseWidget * * @param _id is the id you're searching for */ - getValueWidgetById(_id) : et2_valueWidget | null + getInputWidgetById(_id) : et2_inputWidget | null { let widget = this.getWidgetById(_id); if(widget && widget.instanceOf(et2_valueWidget)) { - return widget; + return widget; } return null } diff --git a/api/js/etemplate/et2_types.d.ts b/api/js/etemplate/et2_types.d.ts index 1523f22a8a..fb3b94d0db 100644 --- a/api/js/etemplate/et2_types.d.ts +++ b/api/js/etemplate/et2_types.d.ts @@ -7,7 +7,9 @@ declare class et2_widget{ destroy() getWidgetById(string) : et2_widget; } -declare class et2_DOMWidget extends et2_widget{} +declare class et2_DOMWidget extends et2_widget{ + public set_class(value: string); +} declare class et2_baseWidget extends et2_DOMWidget{} declare class et2_valueWidget extends et2_baseWidget{} declare class et2_inputWidget extends et2_valueWidget{