ColorGradientBuilder
Defines the fluent API for configuring the Kendo UI ColorGradient
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ColorGradientBuilder : WidgetBuilderBase<ColorGradient, ColorGradientBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<ColorGradient, ColorGradientBuilder>ColorGradientBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the ColorGradientBuilder class.
Methods
Enables the contrast tool in the ColorGradient.
public ColorGradientBuilder ContrastTool()
Returns the current instance of ColorGradientContrastToolSettingsBuilder .
Enables the contrast tool in the ColorGradient.
public ColorGradientBuilder ContrastTool(Action<ColorGradientContrastToolSettingsBuilder> configurator)
The ColorGradientContrastToolSettingsBuilder for the contrasttool setting.
Returns:Returns the current instance of ColorGradientBuilder .
Enables the contrast tool in the ColorGradient.
public ColorGradientBuilder ContrastTool(bool enabled)
Enables or disables the contrasttool option.
Returns:Returns the current instance of ColorGradientContrastToolSettingsBuilder .
Configures the client-side events.
public ColorGradientBuilder Events(Action<ColorGradientEventBuilder> configurator)
The client events action.
Returns:Returns the current ColorGradientBuilder instance.
Defines the format of the gradient input editor.
public ColorGradientBuilder Format(ColorGradientFormat value)
The value for Format
Returns:Returns the current ColorGradientBuilder instance.
Sets the available input formats in the gradient input editor.
public ColorGradientBuilder Formats(params string[] formats)
Only "hex" and "rgb" are valid values.
Returns:Returns the current instance of ColorGradientBuilder for method chaining.
Whether to render the input.
public ColorGradientBuilder Input(bool value)
The value for Input
Returns:Returns the current ColorGradientBuilder instance.
Allows customization labels and messages in the ColorGradient.
public ColorGradientBuilder Messages(Action<ColorGradientMessagesSettingsBuilder> configurator)
The ColorGradientMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of ColorGradientBuilder .
Specifies whether we should display the opacity slider to allow selection of transparency.
public ColorGradientBuilder Opacity()
Returns the current ColorGradientBuilder instance.
Specifies whether we should display the opacity slider to allow selection of transparency.
public ColorGradientBuilder Opacity(bool value)
The value for Opacity
Returns:Returns the current ColorGradientBuilder instance.
Sets the size of the component.
public ColorGradientBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current ColorGradientBuilder instance.
Specifies the initially selected color.
public ColorGradientBuilder Value(string value)
The value for Value
Returns:Returns the current ColorGradientBuilder instance.