using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Umbraco.Web.Models.ContentEditing
{
///
/// Defines a pre value editable field for a data type
///
[DataContract(Name = "preValue", Namespace = "")]
public class PreValueFieldDisplay : PreValueFieldSave
{
///
/// The name to display for this pre-value field
///
[DataMember(Name = "label", IsRequired = true)]
public string Name { get; set; }
///
/// The description to display for this pre-value field
///
[DataMember(Name = "description")]
public string Description { get; set; }
///
/// Specifies whether to hide the label for the pre-value
///
[DataMember(Name = "hideLabel")]
public bool HideLabel { get; set; }
///
/// The view to render for the field
///
[DataMember(Name = "view", IsRequired = true)]
public string View { get; set; }
///
/// This allows for custom configuration to be injected into the pre-value editor
///
[DataMember(Name = "config")]
public IDictionary Config { get; set; }
}
}