SmartPasteButtonServiceSettingsBuilder
Methods
Url(System.String)
The URL of the AI service endpoint for processing paste operations.
Parameters
value - System.String
The value that configures the url.
RETURNS
Returns the current instance of SmartPasteButtonServiceSettingsBuilder .
Example
Razor
@(Html.Kendo().SmartPasteButton()
.Name("smartPaste")
.Service(service => service
.Url("api/llm")
)
)
Headers(System.Object)
HTTP headers to include with AI service requests.
Parameters
value - System.Object
The value that configures the headers.
Example
Razor
@(Html.Kendo().SmartPasteButton()
.Name("smartPaste")
.Service(service => service
.Headers(new { Authorization = "Bearer token" })
)
)
Data(System.Func)
The handler that provides additional parameters sent to the service request.
Parameters
handler - System.Func<Object,Object>
The handler value.
RETURNS
Returns the current instance of SmartPasteButtonServiceSettingsBuilder .
Example
Razor
@(Html.Kendo().SmartPasteButton()
.Name("smartPaste")
.Service(service => service.Data(
@<text>
function(e){
event handling code
}
</text>
))
)
Data(System.String)
The handler that provides additional parameters sent to the service request.
Parameters
handler - System.String
The handler value.
RETURNS
Returns the current instance of SmartPasteButtonServiceSettingsBuilder .
Example
Razor
@(Html.Kendo().SmartPasteButton()
.Name("smartPaste")
.Service(service => service
.Data(quot;dataHandler")
)
)