forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(data-table): re-render when columns change (angular#4830)
* feat(data-table): re-render when columns change * minor changes * comment stuff * add column type * explicit testing: * fix observable type * sync * remove fdescribe * fix test
- Loading branch information
1 parent
cac7610
commit e81619b
Showing
12 changed files
with
205 additions
and
43 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<div class="title"> | ||
Users | ||
</div> | ||
|
||
<div class="actions"> | ||
<button md-icon-button [mdMenuTriggerFor]="menu"> | ||
<md-icon>more_vert</md-icon> | ||
</button> | ||
<md-menu #menu="mdMenu"> | ||
<button md-menu-item (click)="shiftColumns.next()"> | ||
<md-icon>subdirectory_arrow_left</md-icon> | ||
Shift Columns Left | ||
</button> | ||
<button md-menu-item (click)="toggleColorColumn.next()"> | ||
<md-icon>color_lens</md-icon> | ||
Toggle Color Column | ||
</button> | ||
</md-menu> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
:host { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
min-height: 64px; | ||
padding: 0 16px; | ||
} | ||
|
||
.title { | ||
font-size: 20px; | ||
} | ||
|
||
.actions { | ||
color: rgba(0, 0, 0, 0.54); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import {Component, EventEmitter, Output} from '@angular/core'; | ||
|
||
@Component({ | ||
moduleId: module.id, | ||
selector: 'table-header-demo', | ||
templateUrl: 'table-header-demo.html', | ||
styleUrls: ['table-header-demo.css'], | ||
}) | ||
export class TableHeaderDemo { | ||
@Output() shiftColumns = new EventEmitter<void>(); | ||
@Output() toggleColorColumn = new EventEmitter<void>(); | ||
} |
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
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
Oops, something went wrong.