From 588a6671379d25c202aa446c7338031a9c658006 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 6 Oct 2020 10:31:26 +0200 Subject: [PATCH] Make et2_number widget exportable --- api/js/etemplate/et2_widget_number.js | 1 + api/js/etemplate/et2_widget_number.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_number.js b/api/js/etemplate/et2_widget_number.js index e5df640b50..3a811539d6 100644 --- a/api/js/etemplate/et2_widget_number.js +++ b/api/js/etemplate/et2_widget_number.js @@ -162,6 +162,7 @@ var et2_number = /** @class */ (function (_super) { }; return et2_number; }(et2_widget_textbox_1.et2_textbox)); +exports.et2_number = et2_number; et2_core_widget_1.et2_register_widget(et2_number, ["int", "integer", "float"]); /** * Extend read-only to tell it to ignore special attributes, which diff --git a/api/js/etemplate/et2_widget_number.ts b/api/js/etemplate/et2_widget_number.ts index 2ffd0848ed..2d42a07547 100644 --- a/api/js/etemplate/et2_widget_number.ts +++ b/api/js/etemplate/et2_widget_number.ts @@ -21,7 +21,7 @@ import {ClassWithAttributes} from "./et2_core_inheritance"; * * @augments et2_textbox */ -class et2_number extends et2_textbox +export class et2_number extends et2_textbox { static readonly _attributes : any = { "value": {