public IHtmlNode Build()
{
IHtmlNode input = new HtmlTag("input")
.Attributes(new
{
title = Component.Name,
id = Component.Id,
autocomplete = "off",
name = Component.Name
})
.Attributes(Component.HtmlAttributes)
.PrependClass(UIPrimitives.Widget, "t-autocomplete", UIPrimitives.Input);
string value = Component.ViewContext.Controller.ValueOf<string>(Component.Name);
if (value.HasValue())
input.Attribute("value", value);
return input;
}