Class: module:argos/FieldManager

module:argos/FieldManager()

Field Manager is a registry for field types that enables the Edit View layouts to simply define type: 'myFieldType'.

Constructor

new module:argos/FieldManager()

Source:

Members

(static) types

Properties:
Name Type Description
The Object

type map that translates string type names to constructor functions

Source:

Methods

(static) get(name) → {function}

Retrieves a constructor for the given field name

Parameters:
Name Type Description
name

Unique name of field

Source:
Returns:

Constructor for the given field type

Type
function

(static) register(name, ctor)

Registers a field type by providing a unique name and the constructor to be called

Parameters:
Name Type Description
name String

Unique string name of field, will be what is used in Edit View layouts.

ctor function

Constructor function of field

Source: