New to Kendo UI for jQuery? Start a free 30-day trial

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.

<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>
<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>
Not finding the help you need?
Contact Support