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

Service

configuration

The AI service configuration for processing pasted content.

service

Object

Default: null

<form id="form">
    <input name="firstName" />
    <input name="lastName" />
    <button id="smartPasteButton"></button>
</form>

<script>
$("#smartPasteButton").kendoSmartPasteButton({
    service: {
        url: "https://your-ai-service.com/api/parse",
        headers: {
            "Authorization": "Bearer YOUR_API_KEY"
        }
    }
});
</script>

service.data

Object|Function

Additional data to send with AI service requests.

<form id="form">
    <input name="firstName" />
    <button id="smartPasteButton"></button>
</form>

<script>
$("#smartPasteButton").kendoSmartPasteButton({
    service: {
        url: "https://api.example.com/smart-paste",
        data: {
            locale: "en-US",
            context: "customer-form"
        }
    }
});
</script>
<form id="form">
    <input name="firstName" />
    <button id="smartPasteButton"></button>
</form>

<script>
$("#smartPasteButton").kendoSmartPasteButton({
    service: {
        url: "https://api.example.com/smart-paste",
        data: function() {
            return {
                timestamp: new Date().toISOString(),
                userId: getCurrentUserId()
            };
        }
    }
});
</script>

HTTP headers to include with AI service requests.

<form id="form">
    <input name="firstName" />
    <button id="smartPasteButton"></button>
</form>

<script>
$("#smartPasteButton").kendoSmartPasteButton({
    service: {
        url: "https://api.example.com/smart-paste",
        headers: {
            "Authorization": "Bearer YOUR_TOKEN",
            "Content-Type": "application/json"
        }
    }
});
</script>

The URL of the AI service endpoint for processing paste operations.

<form id="form">
    <input name="firstName" />
    <button id="smartPasteButton"></button>
</form>

<script>
$("#smartPasteButton").kendoSmartPasteButton({
    service: {
        url: "https://api.example.com/smart-paste"
    }
});
</script>