Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: table checkbox #1975

Merged
merged 6 commits into from
Feb 17, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<table fd-table>
<thead fd-table-header>
<tr fd-table-row>
<th fd-table-cell><input type="checkbox" [checked]="allSelected" (change)="selectMaster()"/></th>
<th fd-table-cell><fd-checkbox label="Select all" (click)="selectMaster()"></fd-checkbox></th>
<th fd-table-cell>Column 1</th>
<th fd-table-cell>Column 2</th>
<th fd-table-cell>Column 3</th>
Expand All @@ -12,12 +12,12 @@
<tbody fd-table-body>
<tr *ngFor="let row of tableRows; let i = index" fd-table-row>
<td fd-table-cell>
<input type="checkbox" [checked]="row.checked" (change)="select($event, i)"/>
<fd-checkbox label="Option {{ i + 1 }}" [(ngModel)]="row.checked"></fd-checkbox>
</td>
<td fd-table-cell>{{row.column1}}</td>
<td fd-table-cell>{{row.column2}}</td>
<td fd-table-cell>{{row.column3}}</td>
<td fd-table-cell>{{row.date}}</td>
<td fd-table-cell>{{ row.column1 }}</td>
<td fd-table-cell>{{ row.column2 }}</td>
<td fd-table-cell>{{ row.column3 }}</td>
<td fd-table-cell>{{ row.date }}</td>
<td fd-table-cell><fd-icon [glyph]="row.type"></fd-icon></td>
</tr>
</tbody>
Expand Down