requestStart
Fired when the SmartPasteButton begins processing a paste operation.
Event Data
e.sender kendo.ui.SmartPasteButton
The widget instance which fired the event.
e.formFields Array
The form fields configuration being sent to the AI service.
e.content String
The clipboard content being processed.
Example - subscribe to the "requestStart" 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"
},
requestStart: function(e) {
console.log("Processing started for content:", e.content);
}
});
</script>
Example - subscribe to the "requestStart" event after initialization
<form id="form">
<input name="firstName" />
<button id="smartPasteButton"></button>
</form>
<script>
function onRequestStart(e) {
console.log("Processing started");
}
$("#smartPasteButton").kendoSmartPasteButton({
service: {
url: "https://api.example.com/smart-paste"
}
});
var smartPasteButton = $("#smartPasteButton").data("kendoSmartPasteButton");
smartPasteButton.bind("requestStart", onRequestStart);
</script>