UNPKG

vasille

Version:

The first Developer eXperience Orientated front-end framework (core library).

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