public static Build ( ElementRequest req ) : SelectTag | ||
req | ElementRequest | |
return | SelectTag |
protected override HtmlTag BuildTag(ElementRequest request) { var attribute = request.Accessor.GetAttribute <MultiSelectAttribute>(); var selected = request.RawValue as IEnumerable; var select = SelectBuilder.Build(request) .AllowMultiple() .SelectValues(selected) .Rows(attribute.Rows) .AddClass(SelectListChoicesClass); select.Next = JQuerySelectList.SelectList(request.ElementId); return(select); }
protected override HtmlTag BuildTag(ElementRequest request) { return(SelectBuilder.Build(request)); }