requestEnd
Fired when the SmartPasteButton completes processing a paste operation.
Event Data
e.sender kendo.ui.SmartPasteButton
The widget instance which fired the event.
e.fieldValues Object
The processed field values returned by the AI service.
Example - subscribe to the "requestEnd" event during initialization
<form id="form">
<input name="firstName" />
<button id="smartPasteButton"></button>
</form>
<script>
$("#smartPasteButton").kendoSmartPasteButton({
service: {
url: "https://api.example.com/smart-paste"
},
requestEnd: function(e) {
console.log("Processing completed with values:", e.fieldValues);
}
});
</script>
Example - subscribe to the "requestEnd" event after initialization
<form id="form">
<input name="firstName" />
<button id="smartPasteButton"></button>
</form>
<script>
function onRequestEnd(e) {
console.log("Processing completed");
}
$("#smartPasteButton").kendoSmartPasteButton({
service: {
url: "https://api.example.com/smart-paste"
}
});
var smartPasteButton = $("#smartPasteButton").data("kendoSmartPasteButton");
smartPasteButton.bind("requestEnd", onRequestEnd);
</script>