namespace zero.Api.Models;
///
/// Represents an item in a tree
///
public struct 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 display the item icon with a dashed line
///
public bool IsDashed { 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; }
///
/// Output an additional count value.
///
public int? CountOutput { get; set; }
}