Closed wstaelens closed 7 years ago
This is a general MVC question rather than a BMVC specific. Please use StackOverflow for these. You'd do it the same as with regular MVC - using html attributes:
@Html.Bootstrap().TextBoxFor(x => x.MyColor).HtmlAttributes(new { type = "color" })
I agree, but a helper with shorter syntax would be useful... 'textbox' doesn't make sense for an html5 colorpicker
Something like would be great:
@Html.Bootstrap().ColorpickerFor(x => x.MyColor);
It would indeed be a bit cleaner, but to me it doesn't sound like the benefit worth the effort
How to create an input for a HTML5 color picker?