|
|
@ -50,8 +50,8 @@ import { FormFieldConfig } from '@abp/ng.components/dynamic-form'; |
|
|
[submitButtonText]="'Submit'" |
|
|
[submitButtonText]="'Submit'" |
|
|
[showCancelButton]="true" |
|
|
[showCancelButton]="true" |
|
|
(onSubmit)="handleSubmit($event)" |
|
|
(onSubmit)="handleSubmit($event)" |
|
|
(formCancel)="handleCancel()"> |
|
|
(formCancel)="handleCancel()" |
|
|
</abp-dynamic-form> |
|
|
/> |
|
|
`, |
|
|
`, |
|
|
}) |
|
|
}) |
|
|
export class UserFormComponent { |
|
|
export class UserFormComponent { |
|
|
@ -570,8 +570,8 @@ const formFields: FormFieldConfig[] = [ |
|
|
<abp-dynamic-form |
|
|
<abp-dynamic-form |
|
|
[fields]="formFields" |
|
|
[fields]="formFields" |
|
|
[values]="initialValues" |
|
|
[values]="initialValues" |
|
|
(onSubmit)="handleSubmit($event)"> |
|
|
(onSubmit)="handleSubmit($event)" |
|
|
</abp-dynamic-form> |
|
|
/> |
|
|
`, |
|
|
`, |
|
|
}) |
|
|
}) |
|
|
export class MyComponent { |
|
|
export class MyComponent { |
|
|
@ -609,8 +609,8 @@ You can access the form instance using the `exportAs` property and template refe |
|
|
<abp-dynamic-form |
|
|
<abp-dynamic-form |
|
|
#myForm="abpDynamicForm" |
|
|
#myForm="abpDynamicForm" |
|
|
[fields]="formFields" |
|
|
[fields]="formFields" |
|
|
(onSubmit)="handleSubmit($event)"> |
|
|
(onSubmit)="handleSubmit($event)" |
|
|
</abp-dynamic-form> |
|
|
/> |
|
|
|
|
|
|
|
|
<button (click)="myForm.resetForm()">Reset Form</button> |
|
|
<button (click)="myForm.resetForm()">Reset Form</button> |
|
|
`, |
|
|
`, |
|
|
@ -709,8 +709,8 @@ import { FormFieldConfig } from '@abp/ng.components/dynamic-form'; |
|
|
[showCancelButton]="true" |
|
|
[showCancelButton]="true" |
|
|
[submitInProgress]="isSubmitting" |
|
|
[submitInProgress]="isSubmitting" |
|
|
(onSubmit)="handleSubmit($event)" |
|
|
(onSubmit)="handleSubmit($event)" |
|
|
(formCancel)="handleCancel()"> |
|
|
(formCancel)="handleCancel()" |
|
|
</abp-dynamic-form> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
`, |
|
|
`, |
|
|
}) |
|
|
}) |
|
|
|