Defines the fluent API for configuring the Kendo UI SmartPasteButton
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class SmartPasteButtonBuilder : WidgetBuilderBase<SmartPasteButton, SmartPasteButtonBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<SmartPasteButton, SmartPasteButtonBuilder>SmartPasteButtonBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the SmartPasteButtonBuilder class.
Methods
Specifies the icon displayed when the button is in listening/processing state.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public SmartPasteButtonBuilder CancelIcon(Action<SmartPasteButtonCancelIconSettingsBuilder> configurator)
The SmartPasteButtonCancelIconSettingsBuilder for the cancelicon setting.
Returns:Returns the current instance of SmartPasteButtonBuilder .
Specifies the icon displayed when the button is in listening/processing state.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public SmartPasteButtonBuilder CancelIcon(string cancelIcon)
The cancelicon.
Returns:Returns the current instance of SmartPasteButtonBuilder .
Specifies whether the SmartPasteButton widget will be enabled or disabled.
public SmartPasteButtonBuilder Enable(bool value)
The value for Enable
Returns:Returns the current SmartPasteButtonBuilder instance.
Defines a Kendo UI font or SVG icon that is rendered after the SmartPasteButton text.
public SmartPasteButtonBuilder EndIcon(string value)
The value for EndIcon
Returns:Returns the current SmartPasteButtonBuilder instance.
Configures the client-side events.
public SmartPasteButtonBuilder Events(Action<SmartPasteButtonEventBuilder> configurator)
The client events action.
Returns:Returns the current SmartPasteButtonBuilder instance.
Sets a value controlling how the color is applied.
public SmartPasteButtonBuilder FillMode(FillMode value)
The value for FillMode
Returns:Returns the current SmartPasteButtonBuilder instance.
Specifies custom form field configurations for AI processing.
public SmartPasteButtonBuilder FormFields(Action<SmartPasteButtonFormFieldFactory> configurator)
The SmartPasteButtonFormFieldFactory for the formfields setting.
Returns:Returns the current instance of SmartPasteButtonBuilder .
Specifies the icon displayed on the button in its default state.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public SmartPasteButtonBuilder Icon(Action<SmartPasteButtonIconSettingsBuilder> configurator)
The SmartPasteButtonIconSettingsBuilder for the icon setting.
Returns:Returns the current instance of SmartPasteButtonBuilder .
Specifies the icon displayed on the button in its default state.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public SmartPasteButtonBuilder Icon(string icon)
The icon.
Returns:Returns the current instance of SmartPasteButtonBuilder .
Sets a value controlling the border radius.
public SmartPasteButtonBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current SmartPasteButtonBuilder instance.
The AI service configuration for processing pasted content.
public SmartPasteButtonBuilder Service(Action<SmartPasteButtonServiceSettingsBuilder> configurator)
The action that configures the service.
Returns:Returns the current SmartPasteButtonBuilder instance.
The URL of the AI service to use for generating outputs.
public SmartPasteButtonBuilder Service(string actionName, string controllerName, object routeValues)
The action name of the service setting.
controllerNamestringThe controller name of the service setting.
routeValuesobjectThe route values of the service setting.
Returns:Returns the current instance of SmartPasteButtonBuilder .
The URL of the AI service to use for generating outputs.
public SmartPasteButtonBuilder Service(string actionName, string controllerName, RouteValueDictionary routeValues)
The action name of the service setting.
controllerNamestringThe controller name of the service setting.
routeValuesRouteValueDictionaryThe route values of the service setting.
Returns:Returns the current instance of SmartPasteButtonBuilder .
The URL of the AI service to use for generating outputs.
public SmartPasteButtonBuilder Service(string actionName, string controllerName)
The action name of the service setting.
controllerNamestringThe controller name of the service setting.
Returns:Returns the current instance of SmartPasteButtonBuilder .
The URL of the AI service to use for generating outputs.
public SmartPasteButtonBuilder Service(string value)
The url of the service setting.
Returns:Returns the current instance of SmartPasteButtonBuilder .
Sets the size of the component.
public SmartPasteButtonBuilder Size(ButtonSize value)
The value for Size
Returns:Returns the current SmartPasteButtonBuilder instance.
Specifies the text displayed on the button. If not set, the button will display only an icon.
public SmartPasteButtonBuilder Text(string value)
The value for Text
Returns:Returns the current SmartPasteButtonBuilder instance.
Sets the color of the component according to the applied theme.
public SmartPasteButtonBuilder ThemeColor(ThemeColor value)
The value for ThemeColor
Returns:Returns the current SmartPasteButtonBuilder instance.