Expand all

ve.dm.AnnotationFactory

Extends

Constructor

new ve.dm.AnnotationFactory() #

DataModel annotation 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

Inherited from:
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