Browse Source

Merge pull request #11709 from abpframework/feature/button-form-name

form name attribute was added 'abp-button'
pull/11762/head
Bunyamin Coskuner 5 years ago
committed by GitHub
parent
commit
5bef2ada0e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      npm/ng-packs/packages/theme-shared/src/lib/components/button/button.component.ts

4
npm/ng-packs/packages/theme-shared/src/lib/components/button/button.component.ts

@ -18,6 +18,7 @@ import {
#button #button
[id]="buttonId" [id]="buttonId"
[attr.type]="buttonType" [attr.type]="buttonType"
[attr.form]="formName"
[ngClass]="buttonClass" [ngClass]="buttonClass"
[disabled]="loading || disabled" [disabled]="loading || disabled"
(click.stop)="click.next($event); abpClick.next($event)" (click.stop)="click.next($event); abpClick.next($event)"
@ -37,6 +38,9 @@ export class ButtonComponent implements OnInit {
@Input() @Input()
buttonType = 'button'; buttonType = 'button';
@Input()
formName?: string = undefined;
@Input() @Input()
iconClass?: string; iconClass?: string;

Loading…
Cancel
Save