3492 Added a property "Tooltip" to the tabs which can then be set in the the EditorModel Events (#3493)

This commit is contained in:
Poornima Nayar
2018-10-31 18:19:46 +00:00
committed by Sebastiaan Janssen
parent f73d55d496
commit 14e503d0e9
2 changed files with 34 additions and 31 deletions

View File

@@ -1,30 +1,33 @@
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Umbraco.Web.Models.ContentEditing
{
/// <summary>
/// Represents a tab in the UI
/// </summary>
[DataContract(Name = "tab", Namespace = "")]
public class Tab<T>
{
[DataMember(Name = "id")]
public int Id { get; set; }
[DataMember(Name = "active")]
public bool IsActive { get; set; }
[DataMember(Name = "label")]
public string Label { get; set; }
[DataMember(Name = "alias")]
public string Alias { get; set; }
[DataMember(Name = "properties")]
public IEnumerable<T> Properties { get; set; }
[DataMember(Name = "cssClass")]
public string CssClass { get; set; }
}
}
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Umbraco.Web.Models.ContentEditing
{
/// <summary>
/// Represents a tab in the UI
/// </summary>
[DataContract(Name = "tab", Namespace = "")]
public class Tab<T>
{
[DataMember(Name = "id")]
public int Id { get; set; }
[DataMember(Name = "active")]
public bool IsActive { get; set; }
[DataMember(Name = "label")]
public string Label { get; set; }
[DataMember(Name = "alias")]
public string Alias { get; set; }
[DataMember(Name = "properties")]
public IEnumerable<T> Properties { get; set; }
[DataMember(Name = "cssClass")]
public string CssClass { get; set; }
[DataMember(Name = "tooltip")]
public string Tooltip { get; set; }
}
}