Skip to content

Commit eb720ad

Browse files
committed
wip: scrollable
1 parent 9dfc534 commit eb720ad

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/cdk/scrolling/scrollable.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,24 @@ export type _YAxis = _XOR<_Top, _Bottom>;
3636
*/
3737
export type ExtendedScrollToOptions = _XAxis & _YAxis & ScrollOptions;
3838

39+
export interface ExtendedScrollOptions extends ScrollOptions {
40+
/** A distance relative to the right edge of the viewport. */
41+
right?: number,
42+
/**
43+
* A distance relative to the start edge of the viewport (left in ltr languages, right in rtl
44+
* languages).
45+
*/
46+
start?: number,
47+
/**
48+
* A distance relative to the end edge of the viewport (right in ltr languages, left in rtl
49+
* languages).
50+
*/
51+
end?: number,
52+
/** A distance relative to the bottom edge of the viewport. */
53+
bottom?: number,
54+
}
55+
56+
3957
/**
4058
* Sends an event when the directive's element is scrolled. Registers itself with the
4159
* ScrollDispatcher service to include itself as part of its collection of scrolling events that it
@@ -187,4 +205,10 @@ export class CdkScrollable implements OnInit, OnDestroy {
187205
}
188206
}
189207
}
208+
209+
scrollTo(options: ExtendedScrollOptions): void {}
210+
211+
scrollBy(options: ExtendedScrollOptions): void {}
212+
213+
measureScrollOffset(from: 'top' | 'left' | 'right' | 'bottom' | 'start' | 'end'): number {}
190214
}

0 commit comments

Comments
 (0)