SmartPasteButtonComponent
Represents the Kendo UI SmartPasteButton component for Angular.
Fills form fields with AI-powered data extraction from clipboard content.
Selector
button[kendoSmartPasteButton]
Export Name
Accessible in templates as #kendoSmartPasteButtonInstance="kendoSmartPasteButton"
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
disabled |
|
|
When |
fillMode |
|
|
Sets the background and border styles of the SmartPasteButton. |
formFields |
|
|
Specifies the form controls to include in Smart Paste. When not set, all form controls are included. |
icon |
|
|
Specifies the icon name to display in the SmartPasteButton. |
iconClass |
|
Defines one or more CSS classes separated by spaces for a | |
imageUrl |
|
Specifies a URL for an | |
requestOptions? |
|
Configures the HTTP request options for the AI request. Use this to customize headers, method, credentials, and other request settings. | |
requestUrl? |
|
Sets the URL to which Smart Paste sends the AI request.
When set, the component sends and handles an HTTP request automatically. Handle the | |
rounded |
|
|
Sets the border radius of the SmartPasteButton. |
size |
|
|
Sets the padding of the SmartPasteButton. |
svgIcon |
|
Sets an SVG icon to display inside the SmartPasteButton. | |
themeColor |
|
|
Sets a predefined theme color for the SmartPasteButton. The theme color applies as a background and border color and adjusts the text color. |
Events
| Name | Type | Description |
|---|---|---|
requestCancel |
|
Fires when the user cancels an ongoing Smart Paste request. |
requestEnd |
|
Fires when the Smart Paste request completes, either successfully or with an error. Prevent the event to cancel populating the form fields with the response data. |
requestStart |
|
Fires when the Smart Paste request is about to start. Prevent the event to stop the request before sending it. |
Methods
blur |
|---|
|
Removes focus from the SmartPasteButton. |
focus |
|---|
|
Focuses the SmartPasteButton. |
paste | ||||
|---|---|---|---|---|
|
Starts the Smart Paste operation. Reads clipboard content and sends it to the AI service for processing. | ||||
|