# SmartPasteButton

## Example

```
<kendo-smartpastebutton>
    <cancel-icon />
    <form-fields></form-fields>
    <icon />
    <service />
</kendo-smartpastebutton>
```

## ChildTags

| Tag Name    | Details                                                                                                                                                                  |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| cancel-icon | [SmartPasteButtonCancelIconSettingsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/smartpastebuttoncanceliconsettingstaghelper) |
| form-fields | [SmartPasteButtonFormFieldsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/smartpastebuttonformfieldstaghelper)                 |
| icon        | [SmartPasteButtonIconSettingsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/smartpastebuttoniconsettingstaghelper)             |
| service     | [SmartPasteButtonServiceTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/smartpastebuttonservicetaghelper)                       |

## Attributes

| Attribute             | Type                                                                                           | Description                                                                                                                                                                                                                                                                 |
| --------------------- | ---------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name                  | String                                                                                         | Sets the name of the component.                                                                                                                                                                                                                                             |
| as-module             | Boolean                                                                                        | Specifies whether the initialization script of the component will be rendered as a JavaScript module.                                                                                                                                                                       |
| cancel-icon           | String                                                                                         | 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. |
| enable                | Boolean                                                                                        | Specifies whether the SmartPasteButton widget will be enabled or disabled.                                                                                                                                                                                                  |
| end-icon              | String                                                                                         | Defines a Kendo UI font or SVG icon that is rendered after the SmartPasteButton text.                                                                                                                                                                                       |
| icon                  | String                                                                                         | 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.               |
| on-click              | String                                                                                         | 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.                                                               |
| on-error              | String                                                                                         | The name of the JavaScript function that will handle the error event. Fired when an error occurs during SmartPasteButton processing.                                                                                                                                        |
| on-kendo-keydown      | String                                                                                         | 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.             |
| on-request-end        | String                                                                                         | The name of the JavaScript function that will handle the requestEnd event. Fired when the SmartPasteButton completes processing a paste operation.                                                                                                                          |
| is-in-client-template | Boolean                                                                                        | When placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.                                                                                                                                            |
| fill-mode             | [FillMode](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/fillmode)     | Sets a value controlling how the color is applied.                                                                                                                                                                                                                          |
| on-request-start      | String                                                                                         | The name of the JavaScript function that will handle the requestStart event. Fired when the SmartPasteButton begins processing a paste operation.                                                                                                                           |
| script-attributes     | IDictionary\<String,Object>                                                                    | Sets the attributes that will be added to the script tag of the component's initialization script.                                                                                                                                                                          |
| size                  | [ButtonSize](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/buttonsize) | Sets the size of the component.                                                                                                                                                                                                                                             |
| theme-color           | [ThemeColor](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/themecolor) | Sets the color of the component according to the applied theme.                                                                                                                                                                                                             |
| deferred              | Boolean                                                                                        | Suppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.                                                                                                                                                 |
| rounded               | [Rounded](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/rounded)       | Sets a value controlling the border radius.                                                                                                                                                                                                                                 |
| text                  | String                                                                                         | Specifies the text displayed on the button. If not set, the button will display only an icon.                                                                                                                                                                               |
