forked from mystiq/hydrogen-web
Remove TemplateView
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
9a3d7e416a
commit
0ac3d3727b
1 changed files with 4 additions and 5 deletions
|
@ -1,13 +1,12 @@
|
||||||
import {TemplateView} from "../../general/TemplateView.js";
|
|
||||||
import {LazyListView} from "../../general/LazyListView.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 LazyListView{
|
||||||
render(t, vm) {
|
constructor(vm) {
|
||||||
return t.view(new LazyListView({
|
super({
|
||||||
list: vm.memberTileViewModels,
|
list: vm.memberTileViewModels,
|
||||||
className: "MemberListView",
|
className: "MemberListView",
|
||||||
itemHeight: 40
|
itemHeight: 40
|
||||||
}, tileViewModel => new MemberTileView(tileViewModel)));
|
}, tileViewModel => new MemberTileView(tileViewModel));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue