Expand all

abstract ve.dm.ModelFactory

Extends

Constructor

new ve.dm.ModelFactory()abstract #

DataModel meta item factory.

Methods

createFromElement(element, […args]) → {ve.dm.Model} #

Create a new item from a model element

Parameters:

Name Type Attributes Description
element Object

Model element

args any optional
repeatable

Arguments to pass to the constructor

Source:

Returns:

Model constructed from element

Type
ve.dm.Model

Throws:

Element must have a .type property

Type
Error
Create a new item from a model element