Skip to main content
Version: 2.10

Entry

The entry of a brick is a static object linked to the brick class itself that is used to make the link between the code and the database. It stores tags linked to a specific brick :

  • tag of the brick itself
  • tags of properties that can be used as constants.

Deprecated

Extends

Methods

addProperty()

addProperty<T>(tag): Property<T>

Register a property on the brick with the specified tag.

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
tagstring

Returns

Property<T>

the property descriptor

Deprecated

use defineProperty instead


addRelation()

addRelation(tag, direction): Related<any, any>

Register a new relation type with the specified tag and direction

Parameters

ParameterTypeDescription
tagstring
directionDirection

Returns

Related<any, any>

Deprecated

use defineRelation instead


getTag()

getTag(): string

Returns

string

tag of this instance

Inherited from

HasTag.getTag