Created
April 25, 2017 11:08
-
-
Save fshchudlo/024777883c544b9157ee874a1cb884a0 to your computer and use it in GitHub Desktop.
Example of full featured grid for medium post about right-angled library
This file contains 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
<form> | |
<div class="row"> | |
<div class="col-md-4 col-sm-6"> | |
<div class="form-group"> | |
<label>Airport name</label> | |
<input type="text" class="form-control" [(ngModel)]="airportName" name="airportName" /> | |
</div> | |
</div> | |
<div class="col-md-4 col-sm-6"> | |
<div class="form-group"> | |
<label>Country</label> | |
<input type="text" class="form-control" [(ngModel)]="countryName" name="countryName" /> | |
</div> | |
</div> | |
<div class="col-md-4 col-sm-6"> | |
<div class="form-group"> | |
<input (click)="list.loadData()" [disabled]="list.busy" type="submit" class="btn btn-load" title="Load data" /> | |
<input (click)="list.cancelRequests()" [disabled]="list.ready" type="button" class="btn btn-cancel" title="Cancel loading" | |
/> | |
<button (click)="list.resetSettings()" [disabled]="list.busy" type="button" class="btn btn-reset" title="Reset settings"></button> | |
</div> | |
</div> | |
</div> | |
</form> | |
<div class="table-responsive"> | |
<table class="table table-striped" [rtList]="getAirports" #list="rtList" [loadOnInit]="false"> | |
<thead> | |
<tr> | |
<th><span rtSort="iataCode">IATA</span></th> | |
<th><span rtSort="name">Airport name</span></th> | |
<th><span rtSort="countryName">Country</span></th> | |
</tr> | |
</thead> | |
<tbody rtSelectionArea> | |
<tr *ngFor="let airport of list.items" [rtSelectable]="airport"> | |
<td>{{airport.iataCode}}</td> | |
<td>{{airport.name}}</td> | |
<td>{{airport.countryName}}</td> | |
</tr> | |
</tbody> | |
<tfoot> | |
<tr> | |
<td colspan="3"> | |
<rt-demo-paged-footer> | |
</rt-demo-paged-footer> | |
</td> | |
</tr> | |
</tfoot> | |
</table> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment