Skip to content

Commit f8394d6

Browse files
authored
Merge pull request #222 from devforth/vitrual-scroll
feat: add virtual scroll option to resource list
2 parents d4aabfd + e78262f commit f8394d6

File tree

4 files changed

+772
-1
lines changed

4 files changed

+772
-1
lines changed

adminforth/documentation/docs/tutorial/03-Customization/13-standardPagesTuning.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,22 @@ export default {
136136
]
137137
```
138138

139+
### Virtual scroll
140+
141+
Set `options.listVirtualScrollEnabled` to true to enable virtual scrolling in the table
142+
143+
```typescript title="./resources/apartments.ts"
144+
export default {
145+
resourceId: 'aparts',
146+
options: {
147+
...
148+
//diff-add
149+
listVirtualScrollEnabled: true,
150+
}
151+
}
152+
]
153+
```
154+
139155
### Custom row click action
140156

141157
By default, when you click on a record in the list view, the show view will be opened.

0 commit comments

Comments
 (0)