angular2-json-schema-form icon indicating copy to clipboard operation
angular2-json-schema-form copied to clipboard

Calling function in component from event handler fails.

Open Thorski opened this issue 6 years ago • 0 comments

Issue type

I'm submitting a (check one): [x] Bug report [ ] Feature request [ ] Regression (something that used to work, but stopped working in a newer version) [x] Support request [ ] Documentation issue or request

This works:

{ "type": "button", "title": "Click me", "onClick": function (evt) { evt.preventDefault(); alert('Thank you!'); } }

but I don't know how to call a function in my component.

There is an example in the kitchen sink (a button that calls sayNo() ) which also doesn't seem to do anything. So it appears to be a bug.

Thorski avatar Apr 17 '18 19:04 Thorski