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

SetOptions

methods

Updates the configuration options of the SmartPasteButton.

Parameters:optionsObject

The new configuration options to apply.

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

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

smartPasteButton.setOptions({
    text: "Updated Text",
    size: "large"
});
</script>
Not finding the help you need?
Contact Support