Skip to content

Commit

Permalink
Merge pull request #31 from GitHarpon/change-input-button
Browse files Browse the repository at this point in the history
 refactor(toolbox): ajout d'un bouton setter pour l'input number
  • Loading branch information
Philiippe authored Feb 12, 2019
2 parents be224cc + 547eec8 commit 339f536
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/components/toolbox/toolbox.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h2>Loader</h2>
</div>
<div class="mt-2 col-md-12 row">
<div class="col-md-3 mt-2">
<app-button [value]="loading ? 'LOADER.ACTIVATE' : 'LOADER.DESACTIVATE'" (buttonClicked)="setLoading()"></app-button>
<app-button [value]="loading ? 'LOADER.DESACTIVATE' : 'LOADER.ACTIVATE'" (buttonClicked)="setLoading()"></app-button>
</div>
<div class="col-md-1 mt-2">
<app-copy-button template='<app-loader [loading]="loading">
Expand Down Expand Up @@ -416,6 +416,7 @@ <h2>Input-Number</h2>
</div>
<div class="col-md-12 text-right">
<app-button value="DISPLAY_VALUE" type="primary" (buttonClicked)="testInputNumber()"></app-button>
<app-button class="ml-2" value="UPDATE_VALUE" (click)="setInputNumber()"></app-button>
</div>
</div>
<div class="container mt-5">
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/toolbox/toolbox.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ export class ToolboxComponent implements OnInit {
this.toastr.info(this.inputValueNumber.toString());
}

setInputNumber() {
this.inputValueNumber = 1000;
}

testDropdown() {
this.toastr.info(this.dropdownValue.toString());
}
Expand Down

0 comments on commit 339f536

Please sign in to comment.