Files
Umbraco-CMS/src/Umbraco.Infrastructure/PropertyEditors/ListViewPropertyEditor.cs
Kenn Jacobsen cc082e191c Clean up datatype configurations for V14 (#15718)
* Clean up datatype configurations for V14

* Fix merge

* Remove ParameterEditorCollection + revert accidental changes to core project file
2024-02-15 12:36:23 +01:00

29 lines
765 B
C#

// Copyright (c) Umbraco.
// See LICENSE for more details.
using Umbraco.Cms.Core.IO;
namespace Umbraco.Cms.Core.PropertyEditors;
/// <summary>
/// Represents a list-view editor.
/// </summary>
[DataEditor(
Constants.PropertyEditors.Aliases.ListView,
ValueEditorIsReusable = true)]
public class ListViewPropertyEditor : DataEditor
{
private readonly IIOHelper _iioHelper;
public ListViewPropertyEditor(IDataValueEditorFactory dataValueEditorFactory, IIOHelper iioHelper)
: base(dataValueEditorFactory)
{
_iioHelper = iioHelper;
SupportsReadOnly = true;
}
/// <inheritdoc />
protected override IConfigurationEditor CreateConfigurationEditor() =>
new ListViewConfigurationEditor(_iioHelper);
}