angular-schema-form-material icon indicating copy to clipboard operation
angular-schema-form-material copied to clipboard

Form Action Buttons not responding to onClick

Open Ebtessam opened this issue 8 years ago • 2 comments

action.html probably missing something to handle the onClick that is passed. e.g

        {
          type: 'actions',
          items: [
            { type: 'button',
            "style": "md-warn", title: 'Regress', onClick: () => {
              console.log('REG');
              }
            },
            { type: 'button', title: 'Advance', onClick: () => {
              console.log('ADV');
              }
            }
          ]
        },

Ebtessam avatar May 09 '17 18:05 Ebtessam

The submit.html template used for the button and submit addons is missing an ng-click on the button, like in the bootstrap decorator:

          ng-click="buttonClick($event,form)"

mnzaki avatar May 10 '17 09:05 mnzaki

@mnzaki Can confirm this solution works.

brianpkelley avatar Mar 16 '18 21:03 brianpkelley