2021-09-07 12:10:58 +02:00
|
|
|
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;
|
|
|
|
|
|
2021-02-18 11:06:02 +01:00
|
|
|
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; }
|
|
|
|
|
|
2021-06-22 11:45:23 +02:00
|
|
|
[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
|
|
|
|
2018-10-23 19:25:48 +11: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
|
|
|
}
|
|
|
|
|
}
|