2017-07-31 11:58:55 +00:00
|
|
|
<div id="ngx-datatable" class="page-layout simple fullwidth">
|
|
|
|
|
|
|
|
<!-- HEADER -->
|
|
|
|
<div class="header md-accent-bg p-24 h-160" fxLayout="row" fxLayoutAlign="space-between">
|
|
|
|
<div fxLayout="column" fxLayoutAlign="center start">
|
|
|
|
<div class="black-fg" fxLayout="row" fxLayoutAlign="start center">
|
|
|
|
<md-icon class="secondary-text s-16">home</md-icon>
|
|
|
|
<md-icon class="secondary-text s-16">chevron_right</md-icon>
|
|
|
|
<span class="secondary-text">Tables</span>
|
|
|
|
</div>
|
|
|
|
<div class="h2 mt-16">ngx-datatable</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div fxLayout="row" fxLayoutAlign="start center">
|
|
|
|
<a md-raised-button class="md-white-bg"
|
|
|
|
href="https://github.com/swimlane/ngx-datatable"
|
|
|
|
target="_blank">
|
|
|
|
<md-icon>link</md-icon>
|
|
|
|
<span>Reference</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- / HEADER -->
|
|
|
|
|
|
|
|
<!-- CONTENT -->
|
|
|
|
<div class="content p-24">
|
|
|
|
|
2017-07-31 13:49:13 +00:00
|
|
|
<p class="mb-32">
|
|
|
|
<b>ngx-datatable</b> is a Angular component for presenting large and complex data.
|
|
|
|
It has all the features you would expect from any other table but in a light package with no external
|
|
|
|
dependencies. The table was designed to be extremely flexible and light; it doesn't make any assumptions
|
|
|
|
about your data or how you: filter, sort or page it.
|
|
|
|
</p>
|
|
|
|
|
2017-07-31 11:58:55 +00:00
|
|
|
<ngx-datatable
|
|
|
|
class="material"
|
|
|
|
[rows]="rows"
|
|
|
|
[loadingIndicator]="loadingIndicator"
|
|
|
|
[columnMode]="'force'"
|
2017-07-31 13:49:13 +00:00
|
|
|
[headerHeight]="48"
|
|
|
|
[footerHeight]="56"
|
2017-07-31 11:58:55 +00:00
|
|
|
[rowHeight]="'auto'"
|
2017-07-31 13:49:13 +00:00
|
|
|
[scrollbarH]="true"
|
2017-07-31 11:58:55 +00:00
|
|
|
[reorderable]="reorderable"
|
2017-07-31 13:49:13 +00:00
|
|
|
[selectionType]="'checkbox'"
|
2017-07-31 11:58:55 +00:00
|
|
|
[limit]="10">
|
2017-07-31 13:49:13 +00:00
|
|
|
|
|
|
|
<ngx-datatable-column [width]="48"
|
|
|
|
[canAutoResize]="false"
|
|
|
|
[sortable]="false">
|
|
|
|
<ng-template ngx-datatable-header-template let-value="value" let-allRowsSelected="allRowsSelected"
|
|
|
|
let-selectFn="selectFn">
|
|
|
|
<md-checkbox [checked]="allRowsSelected" (change)="selectFn(!allRowsSelected)"></md-checkbox>
|
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
<ng-template ngx-datatable-cell-template let-value="value" let-isSelected="isSelected"
|
|
|
|
let-onCheckboxChangeFn="onCheckboxChangeFn">
|
|
|
|
<md-checkbox [checked]="isSelected" (change)="onCheckboxChangeFn($event)"></md-checkbox>
|
|
|
|
</ng-template>
|
|
|
|
</ngx-datatable-column>
|
|
|
|
|
|
|
|
<ngx-datatable-column name="Name" prop="name">
|
|
|
|
</ngx-datatable-column>
|
|
|
|
|
|
|
|
<ngx-datatable-column name="Last Name" prop="lastName">
|
|
|
|
</ngx-datatable-column>
|
|
|
|
|
|
|
|
<ngx-datatable-column name="Company" prop="company">
|
|
|
|
</ngx-datatable-column>
|
2017-07-31 11:58:55 +00:00
|
|
|
</ngx-datatable>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|