Class: LabelTrait
traits.LabelTrait
Adds name
and type
properties, useful for querying on server-side and for choosing client-side component.
TODO: I might move
type
to base Entity class, seems I'm usingtype
everywhere anyway
Constructors
constructor
• new LabelTrait()
LabelTrait Properties
name
• name: string
type
• type: string
Type should be unique to schema object! If you're extending this schema and adding new fields - set the new type string!