UNPKG

vasille

Version:

The same framework which is designed to build bulletproof frontends (core library).

18 lines (17 loc) 424 B
import { BaseView } from "./base-view.js"; /** * Represents a view of an array model * @class ArrayView * @extends BaseView */ export class ArrayView extends BaseView { createChild(id, item, before) { super.createChild(item, item, before || this.nodes.get(id)); } compose() { super.compose(); this.model.forEach(item => { this.createChild(item, item); }); } }