SmartBox
configurationDefines the configuration options for the SmartBox tool in the Grid. The SmartBox provides a unified interface for search, semantic search, and AI assistant capabilities.
smartBox
ObjectsmartBox.activeMode
StringThe mode which will be initially selected when the SmartBox popup is opened. If not provided, defaults to the first enabled mode. The available modes are:
"Search"- Standard text-based search mode."SemanticSearch"- AI-powered semantic search mode."AIAssistant"- AI assistant mode for natural language queries.
Fired when the user cancels an ongoing AI request in AI Assistant mode.
Fired before the SmartBox sends a prompt request to the AI service in AI Assistant mode. Calling e.preventDefault() will prevent the request from being sent.
Fired when the AI service returns an error in AI Assistant mode.
Fired when the AI service returns a successful response in AI Assistant mode. Calling e.preventDefault() will prevent the default response handling.
Configures the initial settings for the AI Assistant mode.
Fired when the SmartBox input loses focus.
Fired when the SmartBox popup closes.
Fired when the SmartBox input receives focus.
smartBox.history
Boolean|ObjectSets the settings for the history queries of all modes. When set to true, enables history with default settings. Can be set to an object to customize the history behavior.
Default: false
smartBox.historyItemTemplate
FunctionRepresents the template for a history query in the SmartBox component.
Fired when the SmartBox popup opens.
smartBox.placeholder
StringThe unified placeholder text of the SmartBox input independent of the activated mode.
Fired when the user performs a search in the SmartBox Search mode. Calling e.preventDefault() will prevent the default search behavior.
smartBox.searchSettings
ObjectConfigures the initial settings for the Search mode.
Fired when the user performs a search in the SmartBox Semantic Search mode. Use this event to handle semantic search requests with your AI service.
Configures the initial settings for the Semantic Search mode.
smartBox.suggestionTemplate
FunctionRepresents the template for a suggestion in the SmartBox component AI Assistant mode.