ToolCallEventBuilder
Defines the fluent API for configuring the Kendo UI ToolCall for ASP.NET MVC events.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ToolCallEventBuilder : EventBuilder
Inheritance: objectEventBuilderToolCallEventBuilder
Inherited Members
Constructors
Initializes a new instance of the ToolCallEventBuilder class.
public ToolCallEventBuilder(IDictionary<string, object> events)
The ToolCall event handlers.
Methods
Defines the handler of the Action client-side event. Fired when the user clicks the approve or reject button in the approval UI. Only fires when state is "awaitingApproval".The event handler function context (available via the this keyword) will be set to the widget instance.
public ToolCallEventBuilder Action(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ToolCallEventBuilder .
Defines the handler of the Action client-side event. Fired when the user clicks the approve or reject button in the approval UI. Only fires when state is "awaitingApproval".The event handler function context (available via the this keyword) will be set to the widget instance.
public ToolCallEventBuilder Action(string handler)
The name of the JavaScript function that will handle the Action event.
Returns:Returns the current instance of ToolCallEventBuilder .
Defines the handler of the ExpandedChange client-side event. Fired when the user clicks the header to toggle the expanded state. Calling e.preventDefault() prevents the toggle from taking effect.The event handler function context (available via the this keyword) will be set to the widget instance.
public ToolCallEventBuilder ExpandedChange(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current instance of ToolCallEventBuilder .
Defines the handler of the ExpandedChange client-side event. Fired when the user clicks the header to toggle the expanded state. Calling e.preventDefault() prevents the toggle from taking effect.The event handler function context (available via the this keyword) will be set to the widget instance.
public ToolCallEventBuilder ExpandedChange(string handler)
The name of the JavaScript function that will handle the ExpandedChange event.
Returns:Returns the current instance of ToolCallEventBuilder .