New to KendoReactLearn about KendoReact Free.

GridToolbarAIProps

NameTypeDefaultDescription

gridAIPrompt?

CustomComponent<GridAIPromptProps>

Customizes the AI prompt component.

jsx
<GridToolbarAI gridAIPrompt={MyCustomPromptComponent} />

icon?

string

Defines the icon rendered in the GridToolbarAI tool (see example).

jsx
<GridToolbarAI icon="home" />

onCloseWindow?

() => void

The method that will be called to close the column menu.

jsx
<GridToolbarAI onCloseWindow={() => console.log('close menu');} />

onPromptRequest?

(request: GridToolbarAIRequestData, isRetry?: boolean) => void

Called before the request is sent.

jsx
<GridToolbarAI onPromptRequest={(request) => console.log(request)} />

onResponseError?

(error: any) => void

Called when the response returns an error.

jsx
<GridToolbarAI onResponseError={(error) => console.error(error)} />

onResponseSuccess?

(response: AxiosResponse<any>) => void

Called when the response is received.

jsx
<GridToolbarAI onResponseSuccess={(response) => console.log(response)} />

requestOptions?

AxiosRequestConfig<any>

Defines the options for the axios request.

jsx
<GridToolbarAI requestOptions={{ timeout: 5000 }} />

requestUrl?

string

Defines the URL to which the request will be sent.

jsx
<GridToolbarAI requestUrl="https://example.com/api/ai" />

role?

string

Defines the user role for the request. Defaults to 'user'.

jsx
<GridToolbarAI role="admin" />

show?

boolean

Specifies if the popup will be displayed.

jsx
<GridToolbarAI show={true} />

svgIcon?

SVGIcon

Defines the SVG icon rendered in the GridToolbarAI tool (see example).

jsx
import { gearIcon } from '@progress/kendo-svg-icons';

<GridToolbarAI svgIcon={gearIcon} />
Not finding the help you need?
Contact Support