Closed person2713 closed 6 years ago
I add custom button to form use next:
public layout = [ '*', { type: 'submit', title: 'Apply' }, { type: 'button', title: 'Save', // onClick: this.exampleLog(event) // onChanges: this.exampleLog(event) onClick: 'exampleLog()' } ]; public exampleLog() { Log.create('Save').d('message'); }
Then I try to link button 'Save' and function "exampleLog()' but, i don't know how do it. I use angular 2 on typescript and json-schema for angular. Can you give me some example how do it?
I add custom button to form use next:
Then I try to link button 'Save' and function "exampleLog()' but, i don't know how do it. I use angular 2 on typescript and json-schema for angular. Can you give me some example how do it?