本文整理汇总了TypeScript中@fuse/directives/fuse-perfect-scrollbar/fuse-perfect-scrollbar.directive.FusePerfectScrollbarDirective类的典型用法代码示例。如果您正苦于以下问题:TypeScript directive.FusePerfectScrollbarDirective类的具体用法?TypeScript directive.FusePerfectScrollbarDirective怎么用?TypeScript directive.FusePerfectScrollbarDirective使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了directive.FusePerfectScrollbarDirective类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: setTimeout
setTimeout(() => {
// Focus to the reply input
// this._replyInput.nativeElement.focus();
// Scroll to the bottom of the messages list
if ( this._chatViewScrollbar )
{
this._chatViewScrollbar.update();
setTimeout(() => {
this._chatViewScrollbar.scrollToBottom(0);
});
}
});
示例2: setTimeout
setTimeout(() => {
const activeNavItem: any = document.querySelector('navbar .nav-link.active');
if ( activeNavItem )
{
const activeItemOffsetTop = activeNavItem.offsetTop,
activeItemOffsetParentTop = activeNavItem.offsetParent.offsetTop,
scrollDistance = activeItemOffsetTop - activeItemOffsetParentTop - (48 * 3) - 168;
this._fusePerfectScrollbar.scrollToTop(scrollDistance);
}
});
示例3:
.subscribe(() => {
this._fusePerfectScrollbar.update();
});