class ColorMetaField extends MetaFieldPossibleColornullColornull
Represents a color stored in a meta file.
Constructors
constructor
Parameters
name: stringThe name of this field displayed in the editor.
initial: nullColorThe initial value of this field.
MetaField.constructorProperties
description
public description: string = ''
MetaField.descriptioninitial
readonly public initial: nullColor
The initial value of this field.
Inherited fromMetaField.initialname
readonly public name: string
The name of this field displayed in the editor.
Inherited fromMetaField.namespacing
public spacing: boolean = false
MetaField.spacingtype
readonly public type: symbol = Color.symbol
The type of this field used by the editor to display the correct input.
Methods
clone
public clone(): ColorMetaField
Create a clone of this field.
Inherited fromMetaField.clonedescribe
public describedescription: string: ColorMetaField
Set the description of this field.
Parameters
description: stringThe description.
MetaField.describedisable
public disablevalue: boolean = true: ColorMetaField
Disable or enable the field in the editor.
Parameters
value: boolean = trueWhether the field should be disabled.
MetaField.disableget
public get(): nullColor
Get the current value.
Inherited fromMetaField.get