teamlead-dashboard/src/TUI/Components/Layouts/DashboardLayout.cs

42 lines
945 B
C#
Raw Normal View History

2024-03-06 21:49:54 +00:00
using TUI.Engine.Nodes;
2024-03-08 08:24:47 +00:00
using TUI.Engine.Nodes.Attributes.Orientations;
2024-03-08 20:48:16 +00:00
using TUI.Engine.Nodes.Attributes.Resizing;
2024-03-06 21:49:54 +00:00
using TUI.Engine.Nodes.Components;
using TUI.Engine.Nodes.Containers;
namespace TUI.Components.Layouts;
2024-03-08 08:24:47 +00:00
public class DashboardLayout : ContainerBase, IContainer
2024-03-06 21:49:54 +00:00
{
2024-03-08 08:24:47 +00:00
public new Orientation Orientation => Orientation.Vertical;
2024-03-06 21:49:54 +00:00
private INode _header;
private INode _footer;
2024-03-08 08:24:47 +00:00
public override Nodes GetNodes() =>
2024-03-06 21:49:54 +00:00
new()
{
_header, _footer
};
public DashboardLayout AddHeader(IContainer header)
{
_header = header;
return this;
}
public DashboardLayout AddFooter(IComponent footer)
{
_footer = footer;
return this;
}
public string Render()
{
throw new NotImplementedException();
}
2024-03-08 08:24:47 +00:00
public Resizing ResizingHorizontal => Resizing.Adaptive;
public Resizing ResizingVertical => Resizing.Adaptive;
2024-03-06 21:49:54 +00:00
}