Home Reference Source
import Model from 'vibejs/src/entity/Model.js'
public class | source

Model

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public

name: *

public

store: *

public

Method Summary

Public Methods
public
public

attachStore(store: *)

public

fillDefaultValues(structure: *, item: *)

public

insertEntity(id: *, item: *)

public

observe(id: *): *

Public Constructors

public constructor() source

Public Members

public computed: * source

public mutations: * source

public name: * source

public store: * source

public structure: * source

Public Methods

public allEntities(): * source

Return:

*

public attachStore(store: *) source

Params:

NameTypeAttributeDescription
store *

public fillDefaultValues(structure: *, item: *) source

Params:

NameTypeAttributeDescription
structure *
item *

public insertEntity(id: *, item: *) source

Params:

NameTypeAttributeDescription
id *
item *

public observe(id: *): * source

Params:

NameTypeAttributeDescription
id *

Return:

*