Kendo UI SmartPasteButton TagHelper SmartPasteButtonTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-smartpastebutton")]
[RestrictChildren("service", new string[] { "form-fields", "cancel-icon", "icon" })]
public class SmartPasteButtonTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseSmartPasteButtonTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-smartpastebutton name="smartPasteButton" cancel-icon="cancel">
</kendo-smartpastebutton>
Child Tags
Constructors
Initializes a new instance of the SmartPasteButtonTagHelper class.
public SmartPasteButtonTagHelper(IKendoHtmlGenerator generator)
Properties
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.
[HtmlAttributeName("cancel-icon")]
public string CancelIcon { get; set; }
Specifies whether the SmartPasteButton widget will be enabled or disabled.
public bool? Enable { get; set; }
Defines a Kendo UI font or SVG icon that is rendered after the SmartPasteButton text.
public string EndIcon { get; set; }
Sets a value controlling how the color is applied.
public FillMode? FillMode { get; set; }
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.
[HtmlAttributeName("icon")]
public string Icon { get; set; }
The name of the JavaScript function that will handle the click event. Fires when the Button is clicked with the mouse, touched on a touch device, or ENTER (or SPACE) is pressed while the Button is focused.
public string OnClick { get; set; }
The name of the JavaScript function that will handle the error event. Fired when an error occurs during SmartPasteButton processing.
public string OnError { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the Button is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the requestEnd event. Fired when the SmartPasteButton completes processing a paste operation.
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.
public string OnRequestStart { get; set; }
Sets the size of the component.
public ButtonSize? Size { get; set; }
Specifies the text displayed on the button. If not set, the button will display only an icon.
public string Text { get; set; }
Sets the color of the component according to the applied theme.
public ThemeColor? ThemeColor { get; set; }
Methods
Gets the generated initialization script.
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes content to the output.
protected override void WriteHtml(TagHelperOutput output)
Overrides: