41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
|
|
using System.Runtime.Serialization;
|
|||
|
|
|
|||
|
|
namespace Umbraco.Web.Models.ContentEditing
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Defines a pre value editable field for a data type
|
|||
|
|
/// </summary>
|
|||
|
|
[DataContract(Name = "propertyEditor", Namespace = "")]
|
|||
|
|
public class PreValueFieldDisplay
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// The name to display for this pre-value field
|
|||
|
|
/// </summary>
|
|||
|
|
[DataMember(Name = "label", IsRequired = true)]
|
|||
|
|
public string Name { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// The description to display for this pre-value field
|
|||
|
|
/// </summary>
|
|||
|
|
[DataMember(Name = "description")]
|
|||
|
|
public string Description { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Specifies whether to hide the label for the pre-value
|
|||
|
|
/// </summary>
|
|||
|
|
[DataMember(Name = "hideLabel")]
|
|||
|
|
public bool HideLabel { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// The key to store the pre-value against
|
|||
|
|
/// </summary>
|
|||
|
|
[DataMember(Name = "key", IsRequired = true)]
|
|||
|
|
public string Key { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// The view to render for the field
|
|||
|
|
/// </summary>
|
|||
|
|
[DataMember(Name = "view", IsRequired = true)]
|
|||
|
|
public string View { get; set; }
|
|||
|
|
}
|
|||
|
|
}
|