/
MultiNodePickerConfiguration.cs
30 lines (24 loc) · 1.31 KB
/
MultiNodePickerConfiguration.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.PropertyEditors
{
/// <summary>
/// Represents the configuration for the multinode picker value editor.
/// </summary>
public class MultiNodePickerConfiguration : IIgnoreUserStartNodesConfig
{
[ConfigurationField("startNode", "Node type", "treesource")]
public MultiNodePickerConfigurationTreeSource TreeSource { get; set; }
[ConfigurationField("filter", "Allow items of type", "treesourcetypepicker", Description = "Select the applicable types")]
public string Filter { get; set; }
[ConfigurationField("minNumber", "Minimum number of items", "number")]
public int MinNumber { get; set; }
[ConfigurationField("maxNumber", "Maximum number of items", "number")]
public int MaxNumber { get; set; }
[ConfigurationField("showOpenButton", "Show open button", "boolean", Description = "Opens the node in a dialog")]
public bool ShowOpen { get; set; }
[ConfigurationField(Core.Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes,
"Ignore User Start Nodes", "boolean",
Description = "Selecting this option allows a user to choose nodes that they normally don't have access to.")]
public bool IgnoreUserStartNodes { get; set; }
}
}