Class ConfigurationField
Represents a datatype configuration field for editing.
Inheritance
System.Object
Namespace: Umbraco.Core.PropertyEditors
Assembly: Umbraco.Core.dll
Syntax
public class ConfigurationField
Constructors
View SourceConfigurationField()
Initializes a new instance of the ConfigurationField class.
Declaration
public ConfigurationField()
ConfigurationField(IValueValidator[])
Initializes a new instance of the ConfigurationField class.
Declaration
public ConfigurationField(params IValueValidator[] validators)
Parameters
Type | Name | Description |
---|---|---|
IValueValidator[] | validators |
Properties
View SourceConfig
Gets or sets extra configuration properties for the editor.
Declaration
public IDictionary<string, object> Config { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |
Description
Gets or sets the description of the field.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
HideLabel
Gets or sets a value indicating whether to hide the label of the field.
Declaration
public bool HideLabel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Key
Gets or sets the key of the field.
Declaration
public string Key { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets or sets the name of the field.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PropertyName
Gets or sets the property name of the field.
Declaration
public string PropertyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PropertyType
Gets or sets the property CLR type of the field.
Declaration
public Type PropertyType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
Validators
Gets the validators of the field.
Declaration
public List<IValueValidator> Validators { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<IValueValidator> |
View
Gets or sets the view to used in the editor.
Declaration
public string View { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Can be the full virtual path, or the relative path to the Umbraco folder, or a simple view name which will map to ~/Views/PreValueEditors/{view}.html.