Skip to content

feat(sticky-header): Initial version of sticky header #5175

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

Merged
merged 80 commits into from
Jul 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
f261b98
add lib files for sticky-header
sllethe Jun 16, 2017
5393e6a
fix some code according to PR review comments
sllethe Jun 21, 2017
38c7d72
sllethe Jun 21, 2017
aff4169
sllethe Jun 21, 2017
ce0a168
sllethe Jun 21, 2017
60f5087
sllethe Jun 21, 2017
c56679e
sllethe Jun 21, 2017
d6f44c2
sllethe Jun 22, 2017
9b41309
sllethe Jun 22, 2017
e702233
add const STICK_START_CLASS and STICK_END_CLASS
sllethe Jun 22, 2017
0be8e95
sllethe Jun 22, 2017
ecb2f80
sllethe Jun 22, 2017
7557e4d
sllethe Jun 22, 2017
3f0ae25
sllethe Jun 22, 2017
bd933ab
delete global variable '_width'
sllethe Jun 22, 2017
935ac47
sllethe Jun 22, 2017
6d3c363
sllethe Jun 22, 2017
fe294ce
sllethe Jun 22, 2017
71b36fb
sllethe Jun 22, 2017
dfeef98
sllethe Jun 22, 2017
2bdec3a
sllethe Jun 22, 2017
3b30b89
sllethe Jun 22, 2017
2c99a85
sllethe Jun 23, 2017
86493e9
sllethe Jun 23, 2017
6af9bb9
sllethe Jun 23, 2017
1feea54
revert demo-app-module.ts
sllethe Jun 23, 2017
7427dd1
sllethe Jun 23, 2017
cf15f8f
sllethe Jun 26, 2017
8e5e006
change 'CdkStickyHeaderModule' to 'StickyHeaderModule'
sllethe Jun 26, 2017
ea9651b
sllethe Jun 26, 2017
98ee5c0
sllethe Jun 26, 2017
0227a46
sllethe Jun 26, 2017
d937858
sllethe Jun 26, 2017
abbb192
sllethe Jun 26, 2017
a307fef
sllethe Jun 26, 2017
118dca2
sllethe Jun 26, 2017
9a4c595
sllethe Jun 26, 2017
412e673
created a generateStyleCSS() function, let it be responsible for gene…
sllethe Jun 27, 2017
eaaa591
sllethe Jun 27, 2017
3b617bf
add debounce to solve 'getBoundingClientRect() cause slow down' problem.
sllethe Jul 7, 2017
72dbb6c
sllethe Jul 12, 2017
8b07f0c
removed unused import
sllethe Jul 12, 2017
da317e6
sllethe Jul 12, 2017
87d3dd7
removed commented lines
sllethe Jul 12, 2017
ccc6865
sllethe Jul 12, 2017
a718db2
sllethe Jul 13, 2017
2813368
sllethe Jul 13, 2017
c2b28ea
sllethe Jul 13, 2017
f3409ee
sllethe Jul 13, 2017
128bbe1
sllethe Jul 13, 2017
013bb2f
sllethe Jul 14, 2017
d2f78b2
sllethe Jul 14, 2017
ef9b563
Added comments for STICK_START_CLASS and STICK_END_CLASS.
sllethe Jul 14, 2017
e9de5b9
sllethe Jul 14, 2017
b6d3508
unsubscribe sbscriptions onDestory
sllethe Jul 14, 2017
cfa58aa
sllethe Jul 14, 2017
975f860
sllethe Jul 14, 2017
0c0ad1b
sllethe Jul 15, 2017
203e1ee
sllethe Jul 15, 2017
5e9d613
sllethe Jul 15, 2017
aaaeb83
sllethe Jul 15, 2017
7ef3841
sllethe Jul 15, 2017
3dcb0c6
sllethe Jul 17, 2017
ea2584f
sllethe Jul 17, 2017
1f3724e
sllethe Jul 17, 2017
604db11
sllethe Jul 17, 2017
a76e3ba
Added docs for 'const DEBOUNCE_TIME: number = 5;'
sllethe Jul 17, 2017
349abe1
sllethe Jul 17, 2017
2293d8f
sllethe Jul 17, 2017
6b8d5eb
sllethe Jul 17, 2017
7453869
sllethe Jul 17, 2017
8e221a3
sllethe Jul 17, 2017
f154e03
nit
sllethe Jul 17, 2017
9164c37
sllethe Jul 17, 2017
6511ebb
sllethe Jul 17, 2017
867283a
sllethe Jul 17, 2017
29177a5
sllethe Jul 17, 2017
bb655ae
sllethe Jul 18, 2017
8a58865
Added check whether we are on browser
sllethe Jul 18, 2017
3f404dc
Array<string> to string[]
sllethe Jul 18, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/lib/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import {StyleModule} from './core/style/index';
import {MdDatepickerModule} from './datepicker/index';
import {CdkDataTableModule} from './core/data-table/index';
import {MdExpansionModule} from './expansion/index';
import {StickyHeaderModule} from './sticky-header/index';

const MATERIAL_MODULES = [
MdAutocompleteModule,
Expand Down Expand Up @@ -82,7 +83,8 @@ const MATERIAL_MODULES = [
PlatformModule,
MdCommonModule,
ObserveContentModule,
CdkDataTableModule
CdkDataTableModule,
StickyHeaderModule,
];

/** @deprecated */
Expand Down
1 change: 1 addition & 0 deletions src/lib/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ export * from './tabs/index';
export * from './tabs/tab-nav-bar/index';
export * from './toolbar/index';
export * from './tooltip/index';
export * from './sticky-header/index';
23 changes: 23 additions & 0 deletions src/lib/sticky-header/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {OverlayModule, MdCommonModule} from '../core';
import {CdkStickyRegion, CdkStickyHeader} from './sticky-header-dir';



@NgModule({
imports: [OverlayModule, MdCommonModule, CommonModule],
declarations: [CdkStickyRegion, CdkStickyHeader],
exports: [CdkStickyRegion, CdkStickyHeader, MdCommonModule],
})
export class StickyHeaderModule {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed that all this code is in src/lib. As part of the cdk, it should all be under src/cdk. You could do this in a another PR after this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍



export * from './sticky-header-dir';
Loading