New to Telerik UI for ASP.NET Core? Start a free 30-day trial

The SmartPaste Settings FormSmartPasteTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("form-smart-paste", ParentTag = "kendo-form", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("service", new string[] { "form-fields" })]
public class FormSmartPasteTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseFormSmartPasteTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-form name="form">
    <form-smart-paste cancel-icon="close"></form-smart-paste>
</kendo-form>

Constructors

C#
public FormSmartPasteTagHelper()

Properties

Specifies the icon displayed when the button is in listening/processing state.

C#
public string CancelIcon { get; set; }

Specifies whether the SmartPasteButton widget will be enabled or disabled.

C#
public bool? Enable { get; set; }

Sets a value controlling how the color is applied.

C#
public FillMode? FillMode { get; set; }

Specifies the icon displayed on the button in its default state.

C#
public string Icon { get; set; }

The name of the JavaScript function that will handle the error event. Fired when an error occurs during SmartPasteButton processing.

C#
public string OnError { get; set; }

The name of the JavaScript function that will handle the requestEnd event. Fired when the SmartPasteButton completes processing a paste operation.

C#
public string OnRequestEnd { get; set; }

The name of the JavaScript function that will handle the requestStart event. Fired when the SmartPasteButton begins processing a paste operation.

C#
public string OnRequestStart { get; set; }

Sets a value controlling the border radius.

C#
public Rounded? Rounded { get; set; }

Sets the size of the component.

C#
public ComponentSize? Size { get; set; }

Specifies the text displayed on the button. If not set, the button will display only an icon.

C#
public string Text { get; set; }

Sets the color of the component according to the applied theme.

C#
public ThemeColor? ThemeColor { get; set; }

Methods

Adds the current instance to the parent TagHelper, if applicable.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>