mirror of
https://github.com/dnwSilver/tld.git
synced 2025-04-27 07:26:18 +00:00
42 lines
860 B
C#
42 lines
860 B
C#
using TUI.Engine.Attributes.Orientations;
|
|
using TUI.Engine.Components;
|
|
using TUI.Engine.Containers;
|
|
using TUI.Engine.Nodes;
|
|
|
|
namespace TUI.Components.Layouts;
|
|
|
|
public class DashboardLayout : ContainerBase, IContainer
|
|
{
|
|
public DashboardLayout()
|
|
{
|
|
SetOrientationVertical();
|
|
SetAdaptive(Orientation.Horizontal);
|
|
SetAdaptive(Orientation.Vertical);
|
|
}
|
|
|
|
private INode _header;
|
|
private INode _footer;
|
|
|
|
public override Nodes GetNodes() =>
|
|
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();
|
|
}
|
|
} |