Files
Umbraco-CMS/src/Umbraco.Web/Models/ContentEditing/ContentPropertyDisplay.cs
T
2013-06-10 11:15:33 -02:00

29 lines
905 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
namespace Umbraco.Web.Models.ContentEditing
{
/// <summary>
/// Represents a content property that is displayed in the UI
/// </summary>
public class ContentPropertyDisplay : ContentPropertyBasic
{
[DataMember(Name = "label", IsRequired = true)]
[Required]
public string Label { get; set; }
[DataMember(Name = "description")]
public string Description { get; set; }
[DataMember(Name = "view", IsRequired = true)]
[Required(AllowEmptyStrings = false)]
public string View { get; set; }
[DataMember(Name = "config")]
public IEnumerable<string> Config { get; set; }
[DataMember(Name = "hideLabel")]
public bool HideLabel { get; set; }
}
}