Skip to content

Commit

Permalink
comp(loading-button) add class property
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacklone committed Sep 21, 2021
1 parent 856ea73 commit 29932a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion projects/loading-button/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@angular-cool/loading-button",
"version": "11.0.0",
"version": "11.1.0",
"description": "Cool button with loading indicator for angular",
"peerDependencies": {
"@angular/common": ">=10.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<button mat-raised-button
[color]="color"
[disabled]="disabled || isLoading"
class="{{ innerClass }}"
(click)="onClick()">
<mat-spinner *ngIf="isLoading" [color]="spinnerColor" [diameter]="20" class="spinner"></mat-spinner>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export class CoolLoadingButtonComponent<T> {
@Output()
public loadingFinished = new EventEmitter<void>();

@Input('class')
public innerClass: string = '';

public async onClick() {
if (this.disabled || this.isLoading || !this.clickHandler) {
return;
Expand Down

0 comments on commit 29932a4

Please sign in to comment.