Dropdown works

This commit is contained in:
Booklordofthedings 2024-10-17 12:37:30 +02:00
parent f6c0049e78
commit 0f12f4359c
4 changed files with 149 additions and 22 deletions

View file

@ -34,7 +34,7 @@ class MainScreen : Screen
AddChild("Toolbar", toAdd);
AddChild("Button", new Button(new (val) => {Console.WriteLine("Hellau :)");}));
AddChild("dd", new Dropdown(new (val) => {Console.WriteLine("Hellau :)");}));
AddChild("dd", new Dropdown("One", "Two", "Three"));
AddChild("Label", new Label("LMAO"));
AddChild("CBox", new Checkbox("Box"));
@ -45,6 +45,13 @@ class MainScreen : Screen
AddChild("radio", r);
AddChild("hslider", new HSlider());
AddChild("vslider", new VSlider());
AddChild("lb", new Label("""
Labels can also be used to
contain some larger text since this also
works fine
and without any
issues
"""));
Layout = new (val, width) =>
@ -58,6 +65,7 @@ class MainScreen : Screen
val.Component("radio", 5);
val.Component("hslider");
val.Component("vslider");
val.Component("lb");
val.Linebreak();
val.Component("dd", 5);
};