using System.ComponentModel; using umbraco.cms.businesslogic.datatype; namespace umbraco.editorControls.XPathCheckBoxList { /// /// Data Class, used to store the configuration options for the XPathCheckBoxListPreValueEditor /// public class XPathCheckBoxListOptions : AbstractOptions { /// /// Initializes a new instance of the class. /// public XPathCheckBoxListOptions() { } /// /// Initializes a new instance of the class. /// /// if set to true [load defaults]. public XPathCheckBoxListOptions(bool loadDefaults) : base(loadDefaults) { } /// /// XPath string used to get Nodes to be used as CheckBox options in a CheckBoxList /// [DefaultValue("")] public string XPath { get; set; } /// /// Defaults to true, where the property value will be stored as an Xml Fragment, else if false, a Csv will be stored /// [DefaultValue(true)] public bool UseXml { get; set; } /// /// Defaults to true, where property value stored is NodeIds, else if false, then value stored is the Node Names /// [DefaultValue(true)] public bool UseIds { get; set; } } }