Defines the fluent API for configuring the Kendo SmartPasteButton for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class SmartPasteButtonBuilder : WidgetBuilderBase<SmartPasteButton, SmartPasteButtonBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<SmartPasteButton, SmartPasteButtonBuilder>SmartPasteButtonBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the SmartPasteButton class.
public SmartPasteButtonBuilder(SmartPasteButton component)
The component.
Methods
Specifies the icon displayed when the button is in listening/processing state.
public SmartPasteButtonBuilder CancelIcon(string value)
The value that configures the cancelicon.
Returns:Specifies whether the SmartPasteButton widget will be enabled or disabled.
public SmartPasteButtonBuilder Enable(bool value)
The value that configures the enable.
Returns: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 the border radius.
public SmartPasteButtonBuilder FillMode(FillMode value)
The value for Rounded
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 SmartPasteButtonBuilder instance.
Specifies the icon displayed on the button in its default state.
public SmartPasteButtonBuilder Icon(string value)
The value that configures the icon.
Returns: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.
Specifies the URL of the AI service for processing pasted content.
public SmartPasteButtonBuilder Service(string actionName, string controllerName, object routeValues)
The name of tha action.
controllerNamestringThe name of the controller.
routeValuesobjectThe route values.
Returns:Returns the current instance of SmartPasteButtonBuilder .
Specifies the URL of the AI service to use for generating outputs.
public SmartPasteButtonBuilder Service(string actionName, string controllerName, RouteValueDictionary routeValues)
The name of tha action.
controllerNamestringThe name of the controller.
routeValuesRouteValueDictionaryThe route values.
Returns:Returns the current instance of SmartPasteButtonBuilder .
Specifies the URL of the AI service for processing pasted content.
public SmartPasteButtonBuilder Service(string actionName, string controllerName)
The name of the action.
controllerNamestringThe name of the controller.
Returns:Returns the current instance of SmartPasteButtonBuilder .
Specifies the URL of the AI service for processing pasted content.
public SmartPasteButtonBuilder Service(string value)
The URL.
Returns:Returns the current instance of SmartPasteButtonBuilder .
Specifies the text displayed on the button. If not set, the button will display only an icon.
public SmartPasteButtonBuilder Text(string value)
The value that configures the text.
Returns: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.