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
|**mode**| 'smart' \| 'classic' | 'classic' |**Smart** mode shows button only when you scroll more than two screens down and then you will try to go back to top. **Classic** mode shows button immediately when you scroll at least one screen down. |
76
-
|**backgroundColor**| string |#212121| Background color (you can use all values for `backgroud-color` css property). _You can override `theme` color_|
77
-
|**symbolColor**| string | #fafafa | Symbol color (you can use all values for `fill` svg property). _You can override `theme` color_|
78
-
|**size**| number | 40 | Button size [in pixels]. _(Symbol will be resized automatically_) |
79
-
|**symbol**| string || You can use utf8 chars for customizing symbol. For example: `↑`|
80
-
|**position**| 'left' \| 'right' | 'right' | Left or right, that is the question... |
81
-
|**theme**|[NgxScrollTopTheme](projects/ngx-scrolltop/src/lib/ngx-scrolltop.interfaces.ts)| 'gray' | Material color themes |
|**mode**| 'smart' \| 'classic' | 'classic' |**Smart** mode shows button only when you scroll more than two screens down and then you will try to go back to top. **Classic** mode shows button immediately when you scroll at least one screen down. |
99
+
|**backgroundColor**| string |#212121| Background color (you can use all values for `backgroud-color` css property). _You can override `theme` color_|
100
+
|**symbolColor**| string | #fafafa | Symbol color (you can use all values for `fill` svg property). _You can override `theme` color_|
101
+
|**size**| number | 40 | Button size [in pixels]. _(Symbol will be resized automatically_) |
102
+
|**symbol**| string || You can use utf8 chars for customizing symbol. For example: `↑`|
103
+
|**position**| 'left' \| 'right' | 'right' | Left or right, that is the question... |
104
+
|**theme**|[NgxScrollTopTheme](projects/ngx-scrolltop/src/lib/ngx-scrolltop.interface.ts)| 'gray' | Material color themes |
|**[ngxScrollTopMode]**| 'smart' \| 'classic' | 'classic' |**Smart** mode shows button only when you scroll more than two screens down and then you will try to go back to top. **Classic** mode shows button immediately when you scroll at least one screen down. |
82
111
83
-
### Options: Example
112
+
## Examples
113
+
114
+
### Advanced example (component)
84
115
85
116
**app.component.html**
86
117
@@ -97,6 +128,34 @@ In **app.component.html** you just need to add your new button. Usually at the e
0 commit comments