Module: x2node-records

Record types library module.

Requires

Classes

LibraryConstructionContext
PropertiesContainer
PropertyDescriptor
RecordTypeDescriptor
RecordTypesLibrary
RecordTypesLibraryFactory

Methods


<static> buildLibrary(libraryDef)

Build record types library using the provided definitions. This is a shortcut function that allows creating record types libraries that do not use any extensions.
Parameters:
Name Type Description
libraryDef Object Library definition object.
Throws:
If any record type definitions are found invalid.
Type
module:x2node-common.X2UsageError
Returns:
Record types library.
Type
module:x2node-records~RecordTypesLibrary

<static> with( [extensions])

Create record types library builder with the specified extensions.
Parameters:
Name Type Argument Description
extensions module:x2node-records.Extension <optional>
<repeatable>
Extensions.
Returns:
Record types library builder.
Type
module:x2node-records~RecordTypesLibraryFactory