Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import { InjectionToken } from '@angular/core';
|
---|
9 | /** The injection token used to specify the StickyPositioningListener. */
|
---|
10 | export declare const STICKY_POSITIONING_LISTENER: InjectionToken<StickyPositioningListener>;
|
---|
11 | export declare type StickySize = number | null | undefined;
|
---|
12 | export declare type StickyOffset = number | null | undefined;
|
---|
13 | export interface StickyUpdate {
|
---|
14 | elements?: readonly (HTMLElement[] | undefined)[];
|
---|
15 | offsets?: StickyOffset[];
|
---|
16 | sizes: StickySize[];
|
---|
17 | }
|
---|
18 | /**
|
---|
19 | * If provided, CdkTable will call the methods below when it updates the size/
|
---|
20 | * postion/etc of its sticky rows and columns.
|
---|
21 | */
|
---|
22 | export interface StickyPositioningListener {
|
---|
23 | /** Called when CdkTable updates its sticky start columns. */
|
---|
24 | stickyColumnsUpdated(update: StickyUpdate): void;
|
---|
25 | /** Called when CdkTable updates its sticky end columns. */
|
---|
26 | stickyEndColumnsUpdated(update: StickyUpdate): void;
|
---|
27 | /** Called when CdkTable updates its sticky header rows. */
|
---|
28 | stickyHeaderRowsUpdated(update: StickyUpdate): void;
|
---|
29 | /** Called when CdkTable updates its sticky footer rows. */
|
---|
30 | stickyFooterRowsUpdated(update: StickyUpdate): void;
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.