Home

Add additional HTML5 controls as a internal control into LINQPad 7

Let's say following code:

string[] possibleInputs = new[] { "range", "color", "date", "number" };
possibleInputs.Select(i =>
{
    var c = new Control("input");
    c.HtmlElement["type"] = i;
    return new { Type = i, c };
}).Dump();

Will have following dumps:

I think it will very useful when add some missing controls into LINQPad.Controls namespaces like input[type=range] / input[type=color]

Sign In or Register to comment.