ColorGradientBuilder
Defines the fluent API for configuring the Telerik UI for ASP.NET MVC ColorGradient.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ColorGradientBuilder : WidgetBuilderBase<ColorGradient, ColorGradientBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<ColorGradient, ColorGradientBuilder>ColorGradientBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the ColorGradient class.
public ColorGradientBuilder(ColorGradient component)
The component.
Methods
Enables the contrast tool of the ColorGradient.
Defines the contrast tool options.
public ColorGradientBuilder ContrastTool(Action<ColorGradientContrastToolSettingsBuilder> configurator)
The action that configures the contrast tool settings.
Returns:Enables the contrast tool of the ColorGradient.
public ColorGradientBuilder ContrastTool(bool enabled)
The value that configures the visibility of the contrast tool.
Returns:Configures the handled client-side events of the ColorGradient.
public ColorGradientBuilder Events(Action<ColorGradientEventBuilder> configurator)
The action that configures the available events.
Returns:Defines the default input format in the gradient input editor.
public ColorGradientBuilder Format(ColorGradientFormat value)
The value that configures the format.
Returns:Sets the available input formats in the gradient input editor.
public ColorGradientBuilder Formats(params string[] formats)
Only "hex" and "rgb" are valid values.
Returns:Toggles the visibility of the input.
public ColorGradientBuilder Input(bool value)
The value that configures the visibility of the input.
Returns:Defines the localization of the texts that are used in the ColorGradient.
public ColorGradientBuilder Messages(Action<ColorGradientMessagesSettingsBuilder> configurator)
The action that configures the message settings.
Returns:Specifies whether the opacity slider must be shown to allow transparency selection.
public ColorGradientBuilder Opacity(bool value)
The value that configures the visibility of the opacity slider.
Returns:Sets a value controlling the size of the component.
public ColorGradientBuilder Size(ComponentSize value)
The value that configures the size.
Returns:Specifies the initially selected color.
public ColorGradientBuilder Value(string value)
The value that configures the initial color.
Returns: