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

42 lines
860 B
C#
Raw Normal View History

2024-03-15 19:13:09 +00:00
using TUI.Engine.Attributes.Orientations;
using TUI.Engine.Components;
using TUI.Engine.Containers;
2024-03-06 21:49:54 +00:00
using TUI.Engine.Nodes;
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-15 19:13:09 +00:00
public DashboardLayout()
{
SetOrientationVertical();
SetAdaptive(Orientation.Horizontal);
SetAdaptive(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();
}
}