Files
Umbraco-CMS/src/Umbraco.Core/Models/ContentEditing/Tab.cs

41 lines
1.0 KiB
C#
Raw Normal View History

using System;
2021-06-16 15:26:05 +02:00
using System.Collections.Generic;
2018-06-29 19:52:40 +02:00
using System.Runtime.Serialization;
namespace Umbraco.Cms.Core.Models.ContentEditing
2018-06-29 19:52:40 +02:00
{
/// <summary>
/// Represents a tab in the UI
/// </summary>
[DataContract(Name = "tab", Namespace = "")]
public class Tab<T>
{
[DataMember(Name = "id")]
public int Id { get; set; }
2021-06-16 15:26:05 +02:00
[DataMember(Name = "key")]
public Guid Key { get; set; }
[DataMember(Name = "type")]
2022-01-21 11:43:58 +01:00
public string? Type { get; set; }
2021-06-16 15:26:05 +02:00
2018-06-29 19:52:40 +02:00
[DataMember(Name = "active")]
public bool IsActive { get; set; }
[DataMember(Name = "label")]
2022-01-21 11:43:58 +01:00
public string? Label { get; set; }
2018-06-29 19:52:40 +02:00
[DataMember(Name = "alias")]
2022-01-21 11:43:58 +01:00
public string? Alias { get; set; }
2018-06-29 19:52:40 +02:00
/// <summary>
/// The expanded state of the tab
/// </summary>
[DataMember(Name = "open")]
public bool Expanded { get; set; } = true;
2018-06-29 19:52:40 +02:00
[DataMember(Name = "properties")]
2022-01-21 11:43:58 +01:00
public IEnumerable<T>? Properties { get; set; }
2018-06-29 19:52:40 +02:00
}
}