Kendo.Mvc.UI.Fluent.FlatColorPickerBuilder
Defines the fluent API for configuring the Kendo UI FlatColorPicker
Methods
Input(System.Boolean)
Indicates whether the picker will show an input for entering colors.
Parameters
showInput System.Boolean
Whether the input field should be shown.
Example (ASPX)
<%= Html.Kendo().FlatColorPicker()
.Name("FlatColorPicker")
.Input(false)
%>
Opacity(System.Boolean)
Specifies whether we should display the opacity slider to allow selection of transparency.
Parameters
value System.Boolean
The value for Opacity
Opacity
Specifies whether we should display the opacity slider to allow selection of transparency.
Buttons(System.Boolean)
Specifies whether the widget should display the Apply / Cancel buttons.
Parameters
value System.Boolean
The value for Buttons
Buttons
Specifies whether the widget should display the Apply / Cancel buttons.
Value(System.String)
Specifies the initially selected color.
Parameters
value System.String
The value for Value
Preview(System.Boolean)
Specifies whether we should display the preview bar which displays the current color and the input field.
Parameters
value System.Boolean
The value for Preview
Autoupdate(System.Boolean)
Specifies whether the UI should be updated while the user is typing in the input field, whenever a valid color can be parsed. If you passfalse for this, the widget will update only when ENTER is pressed.
Parameters
value System.Boolean
The value for Autoupdate
Messages(System.Action<Kendo.Mvc.UI.Fluent.FlatColorPickerMessagesSettingsBuilder>)
Allows customization of "Apply" / "Cancel" labels.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.FlatColorPickerMessagesSettingsBuilder>
The configurator for the messages setting.
Events(System.Action<Kendo.Mvc.UI.Fluent.FlatColorPickerEventBuilder>)
Configures the client-side events.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.FlatColorPickerEventBuilder>
The client events action.
Example (ASPX)
@(Html.Kendo().FlatColorPicker()
.Name("FlatColorPicker")
.Events(events => events
.Change("onChange")
)
)