widget:scroll-to
Table of Contents
Description
When clicked scrolls to the top of the page or to the specified element by ID. Styles can be added to fix the scroll to top to the bottom left right or center of the page by adding the style tag with 'bottom-right' OR 'bottom-center' OR 'bottom-left'
Usage
as element:
<widget:scroll-to
[scroll-to-id="{string}"]>
</widget:scroll-to>
Directive info
-
This directive creates new scope.
Parameters
Param | Type | Details |
---|---|---|
scroll-to-id (optional) |
string |
The id of the element to scroll to. |