Created
March 9, 2018 15:42
-
-
Save jsanta/b5095ddea8e485af32adf1e507eb56ef to your computer and use it in GitHub Desktop.
Grid page with the button filters.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
Press a button to visually filter results | |
</p> | |
<form> | |
<div class="row"> | |
<div class="float-left pr-1"><button type="button" class="btn btn-md" | |
(click)="resetFilters()">All</button></div> | |
<div class="float-left pr-1"><button type="button" class="btn btn-md btn-info" | |
(click)="toggleFilter('blue')">Blue</button></div> | |
<div class="float-left pr-1"><button type="button" class="btn btn-md btn-success" | |
(click)="toggleFilter('green')">Green</button></div> | |
<div class="float-left pr-1"><button type="button" class="btn btn-md btn-warning" | |
(click)="toggleFilter('yellow')">Yellow</button></div> | |
<div class="float-left pr-1"><button type="button" class="btn btn-md btn-danger" | |
(click)="toggleFilter('red')">Red</button></div> | |
</div> | |
<div class="form-check mt-3"> | |
<input class="form-check-input" type="checkbox" id="enableAnimation" name="enableAnimation" [(ngModel)]="animate"> | |
<label class="form-check-label" for="enableAnimation"> | |
Enable animation | |
</label> | |
</div> | |
</form> | |
<app-data-grid | |
[data]="filteredData" | |
[animate]="animate"></app-data-grid> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment