GridToolbarAIAssistantProps
Represents the props interface for the GridToolbarAIAssistant component. This component provides AI-powered functionality for grid operations through natural language prompts. Users can request sorting, filtering, grouping, and highlighting through conversational input.
<Grid data={products}>
<GridToolbar>
<GridToolbarAIAssistant
requestUrl="/api/ai/grid"
promptPlaceHolder="Ask AI to sort, filter, or group your data"
suggestionsList={[
'Sort products by price',
'Show only electronics',
'Group by category'
]}
onResponseSuccess={(response) => console.log('AI processed:', response)}
/>
</GridToolbar>
</Grid>
| Name | Type | Default | Description |
|---|---|---|---|
enableSpeechToText? |
|
Enables the speech-to-text functionality for the input of the GridToolbarAIAssistant. jsx
| |
gridAIPrompt? |
|
Customizes the AI prompt component. jsx
| |
icon? |
|
Defines the icon rendered in the GridToolbarAIAssistant tool (see example). jsx
| |
loading? |
|
Defines if the AI prompt is in loading mode. jsx
| |
onCloseWindow? |
|
The method that will be called to close the column menu. jsx
| |
onPromptRequest? |
|
Called before the request is sent. jsx
| |
onResponseError? |
|
Called when the response returns an error. jsx
| |
onResponseSuccess? |
|
Called when the response is received. jsx
| |
outputs? |
|
Defines the outputs of the AI prompt. jsx
| |
promptPlaceHolder? |
|
Defines the placeholder text for the AI prompt input. jsx
| |
requestOptions? |
|
Defines the options for the axios request. jsx
| |
requestUrl? |
|
Defines the URL to which the request will be sent. jsx
| |
role? |
|
Defines the user role for the request. Defaults to 'user'. jsx
| |
show? |
|
Specifies if the popup will be displayed. jsx
| |
streaming? |
|
Defines if the AI prompt is in streaming mode. jsx
| |
suggestionsList? |
|
Defines the list of suggestions for the AI prompt. jsx
| |
svgIcon? |
|
Defines the SVG icon rendered in the GridToolbarAIAssistant tool (see example). jsx
|