Home
Options

How to better control the generated HTML

I'm trying to build a quite advanced user interface in LINQ (https://github.com/tessin/tessin-bladerunner/tree/main/Tessin.Bladerunner) and I use a mix of Linqpad.Control and Util features.

I'm having trouble figuring out how to combine the two "worlds" in some cases.

A Button can we used in a Util.VerticalRun but a Util.VerticalRun can't be put inside a StackPanel.

My wish would be to have something like Util.WithClass(new Button("bar"), "foo") that would generate =>

foo</</div>

...or even better Util.HtmlElement("div", new Button("bar"), {@clas = "foo"}) for maximal control.

Comments

Sign In or Register to comment.