StructPropertiesField Class

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

Extends

Methods

Name Description
constructor(category: CategoryDescription, name: string, label: string, description: TypeDescription, memberFields: PropertiesField[], isReadonly: boolean, priority: number, properties: Property[], editor?: EditorDescription, renderer?: RendererDescription): StructPropertiesField    
clone(): StructPropertiesField    
isStructPropertiesField(): this is StructPropertiesField Is this a an struct property field  
toCompressedJSON(classesMap: { T }): StructPropertiesFieldJSON<string> Serialize this object to compressed JSON  
toJSON(): StructPropertiesFieldJSON<ClassInfo> Serialize this object to JSON  
fromCompressedJSON(json: StructPropertiesFieldJSON<string>, classesMap: { T }, categories: CategoryDescription[]): StructPropertiesField Static Deserialize a StructPropertiesField from compressed JSON.  
fromJSON(json: StructPropertiesFieldJSON<ClassInfo>, categories: CategoryDescription[]): StructPropertiesField Static Deserialize StructPropertiesField from JSON  

Inherited methods

Name Inherited from Description
getFieldDescriptor(): FieldDescriptor PropertiesField Get descriptor for this field.
isArrayPropertiesField(): this is ArrayPropertiesField PropertiesField Is this a an array property field
isNestedContentField(): this is NestedContentField PropertiesField Is this a NestedContentField
isPropertiesField(): this is PropertiesField PropertiesField Is this a PropertiesField
matchesDescriptor(descriptor: FieldDescriptor): boolean PropertiesField Checks if this field matches given field descriptor
rebuildParentship(parentField?: NestedContentField): void PropertiesField Sets provided NestedContentField as parent of this field.
resetParentship(): void PropertiesField Resets field's parent.
getCategoryFromFieldJson(fieldJson: FieldJSON<ClassInfoJSON>, categories: CategoryDescription[]): CategoryDescription ProtectedStatic PropertiesField  

Properties

Name Type Description
memberFields PropertiesField[]    

Inherited properties

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

Defined in

Last Updated: 25 April, 2024