Class MissingPropertyEditor
Represents a temporary representation of an editor for cases where a data type is created but not editor is available.
Inheritance
object
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Core.dll
Syntax
public class MissingPropertyEditor : IDataEditor, IDiscoverable
Constructors
View SourceMissingPropertyEditor()
Declaration
[Obsolete("Use the non-obsolete constructor instead. Scheduled for removal in Umbraco 18.")]
public MissingPropertyEditor()
MissingPropertyEditor(string, IDataValueEditorFactory)
Initializes a new instance of the MissingPropertyEditor class.
Declaration
public MissingPropertyEditor(string missingEditorAlias, IDataValueEditorFactory dataValueEditorFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| string | missingEditorAlias | |
| IDataValueEditorFactory | dataValueEditorFactory |
Properties
View SourceAlias
Gets the alias of the editor.
Declaration
public string Alias { get; }
Property Value
| Type | Description |
|---|---|
| string |
DefaultConfiguration
Gets the configuration for the value editor.
Declaration
public IDictionary<string, object> DefaultConfiguration { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, object> |
IsDeprecated
Gets a value indicating whether the editor is deprecated.
Declaration
public bool IsDeprecated { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Deprecated editors are supported but not proposed in the UI.
Name
Gets the name of the editor.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
PropertyIndexValueFactory
Gets the index value factory for the editor.
Declaration
public IPropertyIndexValueFactory PropertyIndexValueFactory { get; }
Property Value
| Type | Description |
|---|---|
| IPropertyIndexValueFactory |
SupportsReadOnly
Declaration
public bool SupportsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceGetConfigurationEditor()
Gets an editor to edit the value editor configuration.
Declaration
public IConfigurationEditor GetConfigurationEditor()
Returns
| Type | Description |
|---|---|
| IConfigurationEditor |
Remarks
Is expected to throw if the editor does not support being configured, e.g. for most parameter editors.
GetValueEditor()
Gets a value editor.
Declaration
public IDataValueEditor GetValueEditor()
Returns
| Type | Description |
|---|---|
| IDataValueEditor |
GetValueEditor(object?)
Gets a configured value editor.
Declaration
public IDataValueEditor GetValueEditor(object? configurationObject)
Parameters
| Type | Name | Description |
|---|---|---|
| object | configurationObject |
Returns
| Type | Description |
|---|---|
| IDataValueEditor |