Switch to lazy list
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
0b9f4a5e1d
commit
ee072343f5
1 changed files with 7 additions and 2 deletions
|
@ -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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue