FlatColorPicker Views
The FlatColorPicker is a component with a new and modern design. One of the available features is the views configuration. It allows you to choose between a gradient
and a palette
view. You can also choose which the default view would be through the view option.
@(Html.Kendo().FlatColorPicker()
.Name("tail")
.Value("#000")
.Events(ev => ev.Change("select"))
.Preview(false)
.View("palette")
.Views(new string[] {"gradient", "palette"})
.HtmlAttributes(new { @class = "picker" })
)
@addTagHelper *, Kendo.Mvc
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{
string[] views = new string[] { "gradient", "palette" };
}
<kendo-flatcolorpicker name="tail" value="#000" on-change="select" preview="false" class="picker"
view="palette" views="views">
</kendo-flatcolorpicker>