Files
Umbraco-CMS/src/Umbraco.Core/PropertyEditors/UserPickerPropertyEditor.cs
Kenn Jacobsen 147c60f04b Performance improvement: Reusable data editors (#12921)
* Introduce opt-in option for reusable data editors

* Verified RTE as reusable

* Make attribute property naming more explicit + update comments

* Test file upload and image cropper

* Add unit tests

(cherry picked from commit 44122c6509)
2022-09-19 16:16:03 +02:00

20 lines
632 B
C#

namespace Umbraco.Cms.Core.PropertyEditors;
[DataEditor(
Constants.PropertyEditors.Aliases.UserPicker,
"User Picker",
"userpicker",
ValueType = ValueTypes.Integer,
Group = Constants.PropertyEditors.Groups.People,
Icon = Constants.Icons.User,
ValueEditorIsReusable = true)]
public class UserPickerPropertyEditor : DataEditor
{
public UserPickerPropertyEditor(
IDataValueEditorFactory dataValueEditorFactory)
: base(dataValueEditorFactory) =>
SupportsReadOnly = true;
protected override IConfigurationEditor CreateConfigurationEditor() => new UserPickerConfiguration();
}