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 {MemberTileView} from "./MemberTileView.js";
|
||||
|
||||
export class MemberListView extends TemplateView {
|
||||
render(t, vm) {
|
||||
return t.view(new LazyListView({
|
||||
export class MemberListView extends LazyListView{
|
||||
constructor(vm) {
|
||||
super({
|
||||
list: vm.memberTileViewModels,
|
||||
className: "MemberListView",
|
||||
itemHeight: 40
|
||||
}, tileViewModel => new MemberTileView(tileViewModel)));
|
||||
}, tileViewModel => new MemberTileView(tileViewModel));
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue