2013-05-27 18:21:07 -10:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2013-05-23 22:15:52 -10:00
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.Models.ContentEditing
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Represents a content property that is displayed in the UI
|
|
|
|
|
|
/// </summary>
|
2013-07-16 18:23:20 +10:00
|
|
|
|
[DataContract(Name = "property", Namespace = "")]
|
2013-06-10 10:36:59 -02:00
|
|
|
|
public class ContentPropertyDisplay : ContentPropertyBasic
|
2013-05-23 22:15:52 -10:00
|
|
|
|
{
|
2013-08-22 15:48:32 +10:00
|
|
|
|
public ContentPropertyDisplay()
|
|
|
|
|
|
{
|
|
|
|
|
|
Config = new Dictionary<string, object>();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2013-05-23 22:15:52 -10:00
|
|
|
|
[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")]
|
2013-08-14 20:08:45 +10:00
|
|
|
|
public IDictionary<string, object> Config { get; set; }
|
2013-05-30 21:21:52 -10:00
|
|
|
|
|
|
|
|
|
|
[DataMember(Name = "hideLabel")]
|
|
|
|
|
|
public bool HideLabel { get; set; }
|
2013-05-23 22:15:52 -10:00
|
|
|
|
}
|
|
|
|
|
|
}
|