Files
Umbraco-CMS/components/editorControls/XPathDropDownList/XPathDropDownListOptions.cs
2012-04-28 13:52:25 -01:00

26 lines
782 B
C#

namespace umbraco.editorControls.XPathDropDownList
{
internal class XPathDropDownListOptions
{
/// <summary>
/// XPath string used to get Nodes to be used as CheckBox options in a CheckBoxList
/// </summary>
public string XPath { get; set; }
/// <summary>
/// Defaults to true, where property value is a csv of NodeIds, else if false, then csv of Node names is stored
/// </summary>
public bool UseId { get; set; }
/// <summary>
/// Initializes an instance of XPathDropDownListOptions
/// </summary>
public XPathDropDownListOptions()
{
this.XPath = string.Empty;
this.UseId = true; // Default to storing Node Id
}
}
}