isEmpty
Used to verify <ng-content>
is empty, useful for custom components.
updateHostClass
Update host component style class
, for example:
updateHostClass(
this.el.nativeElement,
this.renderer,
{
[ 'classname' ]: true,
[ 'classname' ]: this.type === '1',
[ this.cls ]: true,
[ `a-${this.cls}` ]: true
}
)
copy
Copy text to clipboard.
Scrollbar control allows scrolling to where the specified element.
Method | Property | Description |
---|
getScrollPosition | element?: Element | Retrieves the current scroll position |
scrollToPosition | element: Element | Window, position: [number, number] | Sets the scroll position |
scrollToElement | element?: Element, topOffset = 0 | Scroll to element |
scrollToTop | topOffset = 0 | Scroll to top |