Events in subclass


Dear All,

event handlers and widgets:
I know that I can define event handlers in the parameter properties when I create it.

But how can I define event handler functions when I subclass a widget?

I am looking for something like

class MyWidget extends TextInput {

    onChange: void { console.log( 'changed' ); }


Thank you. Peter