本文整理匯總了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();
});