PropertiesField Class

Describes a content field that's based on one or more similar EC properties.

Extends

Methods

Name Description
constructor(category: CategoryDescription, name: string, label: string, description: TypeDescription, isReadonly: boolean, priority: number, properties: Property[], editor?: EditorDescription, renderer?: RendererDescription): PropertiesField Creates an instance of PropertiesField.  
clone(): PropertiesField    
getFieldDescriptor(): FieldDescriptor Get descriptor for this field.  
toJSON(): PropertiesFieldJSON<ClassInfoJSON> Serialize this object to JSON  
fromJSON(json: undefined | PropertiesFieldJSON<ClassInfoJSON>, categories: CategoryDescription[]): undefined | PropertiesField Static Deserialize PropertiesField from JSON  
fromJSON(json: undefined | string | PropertiesFieldJSON<ClassInfoJSON>): undefined | PropertiesField Static Deserialize PropertiesField from JSON Deprecated  

Inherited methods

Name Inherited from Description
isNestedContentField(): this is NestedContentField Field Is this a NestedContentField
isPropertiesField(): this is PropertiesField Field Is this a PropertiesField
toCompressedJSON(classesMap: { T }): FieldJSON<string> Field Serialize this object to compressed JSON
fromCompressedJSON(json: FieldJSON<string>, classesMap: { T }): undefined | FieldJSON<ClassInfoJSON> Static Field Deserialize Field from compressed JSON
getCategoryFromFieldJson(fieldJson: FieldJSON<ClassInfoJSON>, categories?: CategoryDescription[]): CategoryDescription ProtectedStatic Field  

Properties

Name Type Description
properties Property[] A list of properties this field is created from  

Inherited properties

Name Type Inherited from Description
category CategoryDescription Field Category information
editor undefined | EditorDescription Field Property editor used to edit values of this field
isReadonly boolean Field Are values in this field read-only
label string Field Display label
name string Field Unique name
parent Accessor ReadOnly undefined | NestedContentField Field Get parent
priority number Field Priority of the field.
renderer undefined | RendererDescription Field Property renderer used to render values of this field
type TypeDescription Field Description of this field's values data type

Defined in

Last Updated: 12 June, 2024