mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Switch to lazy list
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
0b9f4a5e1d
commit
ee072343f5
@ -1,9 +1,14 @@
|
|||||||
import {TemplateView} from "../../general/TemplateView.js";
|
import {TemplateView} from "../../general/TemplateView.js";
|
||||||
import {ListView} from "../../general/ListView.js";
|
import {LazyListView} from "../../general/LazyListView.js";
|
||||||
import {MemberTileView} from "./MemberTileView.js";
|
import {MemberTileView} from "./MemberTileView.js";
|
||||||
|
|
||||||
export class MemberListView extends TemplateView {
|
export class MemberListView extends TemplateView {
|
||||||
render(t, vm) {
|
render(t, vm) {
|
||||||
return t.view(new ListView({list: vm.memberTileViewModels, className:"MemberListView"}, tileViewModel => new MemberTileView(tileViewModel)));
|
return t.view(new LazyListView({
|
||||||
|
list: vm.memberTileViewModels,
|
||||||
|
className: "MemberListView",
|
||||||
|
height: 691,
|
||||||
|
itemHeight: 32
|
||||||
|
}, tileViewModel => new MemberTileView(tileViewModel)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user