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
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,22 @@ Here is an example:
153
153
</virtual-scroller>
154
154
```
155
155
156
+
## Page mode
157
+
158
+
The page mode expand the virtual-scroller and use the page viewport to compute which items are visible. That way, you can use it in a big page with HTML elements before or after (like a header and a footer). Just set the `page-mode` props to `true`:
159
+
160
+
```html
161
+
<header>
162
+
<menu></menu>
163
+
</header>
164
+
165
+
<virtual-scrollerpage-mode></virtual-scroller>
166
+
167
+
<footer>
168
+
Copyright 2017 - Cat
169
+
</footer>
170
+
```
171
+
156
172
## Customizing the tags
157
173
158
174
These are optional props you can use to change the DOM tags used in the virtual scroller:
0 commit comments