angular2-easy-forms icon indicating copy to clipboard operation
angular2-easy-forms copied to clipboard

Conditions in submitButtonText option

Open albelko opened this issue 7 years ago • 0 comments

How I can set condition on settings.submitButtonText property? I wanna to set Submit button text depending on object variable questions[0].value.

export const field = { settings: { submitButtonText: function() { return this.questions[0].value ? 'Edit' : 'Send' } }, questions: [ { type: 'text', key: 'field', value: '' } ] };

albelko avatar Aug 17 '17 13:08 albelko