Files
Umbraco-CMS/src/Umbraco.Web/PropertyEditors/MultiNodeTreePicker2PropertyEditor.cs

38 lines
1.2 KiB
C#
Raw Normal View History

2017-05-12 14:49:44 +02:00
using System.Collections.Generic;
using Umbraco.Core;
using Umbraco.Core.Logging;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.PropertyEditors
{
2018-01-24 13:37:14 +01:00
[ValueEditor(Constants.PropertyEditors.Aliases.MultiNodeTreePicker2, "Multinode Treepicker", "contentpicker", ValueTypes.Text, Group = "pickers", Icon = "icon-page-add")]
2017-05-12 14:49:44 +02:00
public class MultiNodeTreePicker2PropertyEditor : PropertyEditor
{
public MultiNodeTreePicker2PropertyEditor(ILogger logger)
: base(logger)
{
InternalPreValues = new Dictionary<string, object>
{
2018-01-24 11:44:44 +01:00
{ "multiPicker", 1 },
{ "showOpenButton", 0 },
{ "showEditButton", 0 },
{ "showPathOnHover", 0 },
{ "idType", "udi" }
2017-05-12 14:49:44 +02:00
};
}
2018-01-24 11:44:44 +01:00
protected override ConfigurationEditor CreateConfigurationEditor()
2017-05-12 14:49:44 +02:00
{
2018-01-24 11:44:44 +01:00
return new MultiNodePickerConfigurationEditor();
2017-05-12 14:49:44 +02:00
}
internal IDictionary<string, object> InternalPreValues;
2018-01-26 17:55:20 +01:00
public override IDictionary<string, object> DefaultConfiguration
2017-05-12 14:49:44 +02:00
{
get => InternalPreValues;
set => InternalPreValues = value;
}
}
2017-07-20 11:21:28 +02:00
}