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
renderAhead: 2, // Buffer, +2 at top / bottom in queue
146
143
estimatedHeight: 20, // We need to assume that there is some default height for each row which will be recalculated later
147
144
expandedGroup: '',
148
145
};
149
146
},
150
147
methods: {
151
-
expandedGroup(group) {
148
+
onExpandGroup(group) {
152
149
// You may fetch data here and mutate items object
153
150
// this.items[group] = ['a', 'b', 'c', 'd'];
154
151
@@ -164,7 +161,6 @@ Props:
164
161
| Prop name | Description | Default value |
165
162
| ------------- |:-------------:| -----:|
166
163
| items | list of items |[] or {} for Nested/Expanding List |
167
-
| rootHeight | max height of scroll component | 400 |
168
164
| renderAhead | number of buffered items at the top/bottom | 2 |
169
165
| estimatedHeight | approximated value of each row height | 30 |
170
166
| expandedGroup | key of expanded group - only for ExpandingList | '' |
@@ -173,7 +169,28 @@ Events:
173
169
174
170
- expand: click event for group element which toggles between visible state of group items - only for ExpandingList
175
171
172
+
### Tips
173
+
174
+
Do not use margin directly for styling node items! Height won't be measured well.
175
+
{: .alert .alert-danger}
176
+
177
+
Each virtualized component by default will expand height by 100%, to override it and make things happening you either have to set height / max-height of component or by implementing dynamic height content with flexbox / grid.
0 commit comments