You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Lightweight, **Material Design inspired button for scroll-to-top** of the page. No dependencies. **Pure Angular!**
11
+
> Lightweight, **Material Design inspired button for scroll-to-top** of the page.
12
+
> No dependencies.
13
+
> **Pure Angular!**
12
14
13
-
> ✓ Angular 10, Ivy and SSR compatible
15
+
> ✓ Angular 10, Ivy and Angular Universal (SSR) compatible
14
16
15
17
Just hit the button to smoothly scroll back to the top of the page. [Here's the demo.](http://bartholomej.github.io/ngx-scrolltop/)
16
18
@@ -102,10 +104,28 @@ In **app.component.html** you just need to add your new button. Usually at the e
102
104
|**backgroundColor**| string |#212121| Background color (you can use all values for `backgroud-color` css property). _You can override `theme` color_|
103
105
|**symbolColor**| string | #fafafa | Symbol color (you can use all values for `fill` svg property). _You can override `theme` color_|
104
106
|**size**| number | 40 | Button size [in pixels]. _(Symbol will be resized automatically_) |
105
-
|**symbol**|string || You can use utf8 chars for customizing symbol. For example: `↑`|
107
+
|~~**symbol**~~|~~string~~||~~You can use utf8 chars for customizing symbol. For example: `↑`~~ Removed in v2.0.0. Use _content projection_. See example [here](#symbol)|
106
108
|**position**| 'left' \| 'right' | 'right' | Left or right, that is the question... |
107
109
|**theme**|[NgxScrollTopTheme](projects/ngx-scrolltop/src/lib/ngx-scrolltop.interface.ts)| 'gray' | Material color themes |
108
110
111
+
#### Symbol
112
+
113
+
Since version v2.0.0 you can use _content projection_ for your own symbol.
114
+
115
+
```html
116
+
<ngx-scrolltop>
117
+
↑
118
+
</ngx-scrolltop>
119
+
```
120
+
121
+
Or you can even use your own components or fonts (e.g. fontAwesome)
122
+
123
+
```html
124
+
<ngx-scrolltop>
125
+
<iclass="fa fa-arrow-up"></i>
126
+
</ngx-scrolltop>
127
+
```
128
+
109
129
### Directive
110
130
111
131
| Option | Type | Default | Description |
@@ -123,11 +143,11 @@ In **app.component.html** you just need to add your new button. Usually at the e
0 commit comments