using System;
namespace Umbraco.Web.Trees
{
///
/// Identifies a section tree.
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class TreeAttribute : Attribute, ITree
{
///
/// Initializes a new instance of the class.
///
public TreeAttribute(string sectionAlias, string treeAlias)
{
SectionAlias = sectionAlias;
TreeAlias = treeAlias;
}
///
/// Gets the section alias.
///
public string SectionAlias { get; }
///
/// Gets the tree alias.
///
public string TreeAlias { get; }
///
/// Gets or sets the tree title.
///
public string TreeTitle { get; set; }
///
/// Gets or sets the group of the tree.
///
public string TreeGroup { get; set; }
///
/// Gets the usage of the tree.
///
public TreeUse TreeUse { get; set; } = TreeUse.Main | TreeUse.Dialog;
///
/// Gets or sets the tree sort order.
///
public int SortOrder { get; set; }
///
/// Gets or sets a value indicating whether the tree is a single-node tree (no child nodes, full screen app).
///
public bool IsSingleNodeTree { get; set; }
}
}