Files
Umbraco-CMS/src/Umbraco.Web/PropertyEditors/TrueFalsePropertyEditor.cs
2016-05-24 15:55:26 +02:00

20 lines
713 B
C#

using Umbraco.Core;
using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.PropertyEditors
{
[PropertyEditor(Constants.PropertyEditors.TrueFalseAlias, "True/False", PropertyEditorValueTypes.Integer, "boolean", IsParameterEditor = true, Group = "Common", Icon="icon-checkbox")]
public class TrueFalsePropertyEditor : PropertyEditor
{
protected override PreValueEditor CreatePreValueEditor()
{
return new TrueFalsePreValueEditor();
}
internal class TrueFalsePreValueEditor : PreValueEditor
{
[PreValueField("default", "Default Value", "boolean")]
public string Default { get; set; }
}
}
}