-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(scroll-indicator): add scroll indicator component (#317)
- Loading branch information
1 parent
33be260
commit a3f9151
Showing
19 changed files
with
698 additions
and
363 deletions.
There are no files selected for viewing
74 changes: 38 additions & 36 deletions
74
projects/ng-aquila/documentation/examples/table/table-condensed/table-condensed-example.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,38 @@ | ||
<table nxTable condensed> | ||
<thead> | ||
<tr nxTableRow> | ||
<th nxHeaderCell> | ||
Product | ||
</th> | ||
<th nxHeaderCell> | ||
Contract Number | ||
</th> | ||
<th nxHeaderCell> | ||
Description | ||
</th> | ||
<th nxHeaderCell> | ||
Website | ||
</th> | ||
<th nxHeaderCell> | ||
Ending At | ||
</th> | ||
<th nxHeaderCell> | ||
Status | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr nxTableRow *ngFor="let item of tableElements"> | ||
<td nxTableCell>{{item.product}}</td> | ||
<td nxTableCell>{{item.contractNumber}}</td> | ||
<td nxTableCell>{{item.desc}}</td> | ||
<td nxTableCell> | ||
<nx-link><a routerLink='#'>{{item.website}}</a></nx-link> | ||
</td> | ||
<td nxTableCell>{{item.endingAt}}</td> | ||
<td nxTableCell><nx-badge [type]="item.status">{{item.statusText}}</nx-badge></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<nx-swipebar label="Scroll to see more"> | ||
<table nxTable condensed> | ||
<thead> | ||
<tr nxTableRow> | ||
<th nxHeaderCell> | ||
Product | ||
</th> | ||
<th nxHeaderCell> | ||
Contract Number | ||
</th> | ||
<th nxHeaderCell> | ||
Description | ||
</th> | ||
<th nxHeaderCell> | ||
Website | ||
</th> | ||
<th nxHeaderCell> | ||
Ending At | ||
</th> | ||
<th nxHeaderCell> | ||
Status | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr nxTableRow *ngFor="let item of tableElements"> | ||
<td nxTableCell>{{item.product}}</td> | ||
<td nxTableCell>{{item.contractNumber}}</td> | ||
<td nxTableCell>{{item.desc}}</td> | ||
<td nxTableCell> | ||
<nx-link><a routerLink='#'>{{item.website}}</a></nx-link> | ||
</td> | ||
<td nxTableCell>{{item.endingAt}}</td> | ||
<td nxTableCell><nx-badge [type]="item.status">{{item.statusText}}</nx-badge></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</nx-swipebar> |
84 changes: 43 additions & 41 deletions
84
...cts/ng-aquila/documentation/examples/table/table-expandable/table-expandable-example.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,45 @@ | ||
<table nxTable nxExpandableTable #expandableTable="nxExpandableTable" zebra> | ||
<thead> | ||
<tr nxTableRow> | ||
<th nxHeaderCell class="nx-table-cell--toggle" aria-label="Expand row"> | ||
<nx-toggle-button [target]="expandableTable" | ||
ariaLabel="Toggle all rows"></nx-toggle-button> | ||
</th> | ||
<th nxHeaderCell> | ||
Product | ||
</th> | ||
<th nxHeaderCell> | ||
Contract number | ||
</th> | ||
<th nxHeaderCell> | ||
Ending date | ||
</th> | ||
<th nxHeaderCell> | ||
Status | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<ng-container *ngFor="let item of tableElements"> | ||
<nx-swipebar label="Scroll to see more"> | ||
<table nxTable nxExpandableTable #expandableTable="nxExpandableTable" zebra> | ||
<thead> | ||
<tr nxTableRow> | ||
<td nxTableCell class="nx-table-cell--toggle"> | ||
<nx-toggle-button [target]="expandableRow" | ||
ariaLabel="Toggle {{item.product}} row"></nx-toggle-button> | ||
</td> | ||
<td nxTableCell>{{item.product}}</td> | ||
<td nxTableCell>{{item.contractNumber}}</td> | ||
<td nxTableCell>{{item.endingAt}}</td> | ||
<td nxTableCell><nx-badge [type]="item.status">{{item.statusText}}</nx-badge></td> | ||
<th nxHeaderCell class="nx-table-cell--toggle" aria-label="Expand row"> | ||
<nx-toggle-button [target]="expandableTable" | ||
ariaLabel="Toggle all rows"></nx-toggle-button> | ||
</th> | ||
<th nxHeaderCell> | ||
Product | ||
</th> | ||
<th nxHeaderCell> | ||
Contract number | ||
</th> | ||
<th nxHeaderCell> | ||
Ending date | ||
</th> | ||
<th nxHeaderCell> | ||
Status | ||
</th> | ||
</tr> | ||
<tr nxExpandableTableRow #expandableRow> | ||
<td nxExpandableTableCell></td> | ||
<td nxExpandableTableCell> | ||
<nx-link><a routerLink='#'>{{item.website}}</a></nx-link> | ||
</td> | ||
<td nxExpandableTableCell colspan="3">{{item.desc}}</td> | ||
</tr> | ||
</ng-container> | ||
</tbody> | ||
</table> | ||
</thead> | ||
<tbody> | ||
<ng-container *ngFor="let item of tableElements"> | ||
<tr nxTableRow> | ||
<td nxTableCell class="nx-table-cell--toggle"> | ||
<nx-toggle-button [target]="expandableRow" | ||
ariaLabel="Toggle {{item.product}} row"></nx-toggle-button> | ||
</td> | ||
<td nxTableCell>{{item.product}}</td> | ||
<td nxTableCell>{{item.contractNumber}}</td> | ||
<td nxTableCell>{{item.endingAt}}</td> | ||
<td nxTableCell><nx-badge [type]="item.status">{{item.statusText}}</nx-badge></td> | ||
</tr> | ||
<tr nxExpandableTableRow #expandableRow> | ||
<td nxExpandableTableCell></td> | ||
<td nxExpandableTableCell> | ||
<nx-link><a routerLink='#'>{{item.website}}</a></nx-link> | ||
</td> | ||
<td nxExpandableTableCell colspan="3">{{item.desc}}</td> | ||
</tr> | ||
</ng-container> | ||
</tbody> | ||
</table> | ||
</nx-swipebar> |
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
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
98 changes: 50 additions & 48 deletions
98
...-aquila/documentation/examples/table/table-form-elements/table-form-elements-example.html
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
Oops, something went wrong.