namespace zero.Core.Entities
{
///
/// Represents an item in a tree
///
public class TreeItem
{
///
/// Id of the item
///
public string Id { get; set; }
///
/// Parent id of the item
///
public string ParentId { get; set; }
///
/// Sort order
///
public uint Sort { get; set; }
///
/// Name of the item
///
public string Name { get; set; }
///
/// Displays a description on hover
///
public string Description { get; set; }
///
/// Icon to display alongside the name
///
public string Icon { get; set; }
///
/// Whether this item is open in case it contains children
///
public bool IsOpen { get; set; }
///
/// Displays a small icon (with hover text) next to the main item icon
///
public TreeItemModifier Modifier { get; set; }
///
/// Whether this item has children
///
public bool HasChildren { get; set; }
///
/// Count of children
///
public int ChildCount { get; set; }
///
/// Whether this item is published or not
///
public bool IsInactive { get; set; }
///
/// Whether to show actions menu. This will only work when the onActionsRequested cb is implemented in the component
///
public bool HasActions { get; set; }
}
///
/// The modifier displays a small icon (with hover text) next to the main item icon
///
public class TreeItemModifier
{
///
/// Name of the modifier
///
public string Name { get; set; }
///
/// Icon to display
///
public string Icon { get; set; }
}
}