Fix button onclick attribute was not parsed into javascript

This commit is contained in:
nathangray 2020-02-12 14:06:09 -07:00
parent 69261c3688
commit 5ab4d36830
2 changed files with 7 additions and 6 deletions

View File

@ -325,7 +325,8 @@ var et2_button = /** @class */ (function (_super) {
"description": "Use this icon instead of hiding for read-only"
},
"onclick": {
"description": "JS code which gets executed when the button is clicked"
"description": "JS code which gets executed when the button is clicked",
"type": "js"
},
"accesskey": {
"name": "Access Key",

View File

@ -15,10 +15,9 @@
*/
import './et2_core_common';
import { ClassWithAttributes } from "./et2_core_inheritance";
import { et2_widget, et2_createWidget, et2_register_widget, WidgetConfig } from "./et2_core_widget";
import { et2_DOMWidget } from './et2_core_DOMWidget'
import { et2_baseWidget } from './et2_core_baseWidget'
import {ClassWithAttributes} from "./et2_core_inheritance";
import {et2_createWidget, et2_register_widget, WidgetConfig} from "./et2_core_widget";
import {et2_baseWidget} from './et2_core_baseWidget'
import './et2_types';
/**
@ -44,7 +43,8 @@ export class et2_button extends et2_baseWidget implements et2_IInput, et2_IDetac
"description": "Use this icon instead of hiding for read-only"
},
"onclick": {
"description": "JS code which gets executed when the button is clicked"
"description": "JS code which gets executed when the button is clicked",
"type": "js"
},
"accesskey": {
"name": "Access Key",