SmartBoxToolbarToolComponent
Represents the toolbar tool for showing a smart bar. Use this component inside a ToolbarComponent in the Grid.
Definition
Package:@progress/kendo-angular-grid
Selector:kendo-grid-smartbox-tool
Syntax:
<kendo-grid>
<kendo-toolbar>
<kendo-grid-smartbox-tool></kendo-grid-smartbox-tool>
</kendo-toolbar>
</kendo-grid>
Inputs
Sets the initially active mode of the tool.
'search'
Controls the visibility and settings of the AI Assistant mode. By default, the mode is disabled.
false
history
boolean | GridSmartBoxHistorySettings
Controls the visibility and settings of the history for each mode.
placeholder
string
Sets the placeholder of the input element in the SmartBox and applies to all modes.
searchMode
boolean | GridSmartBoxSearchSettings
Controls the visibility and settings of the Search mode. By default, the mode is enabled.
true
Controls the visibility and settings of the Semantic Search mode. By default, the mode is disabled.
false
Specifies the padding of the input.
'medium'
Fields
loading
boolean
Indicates whether the SmartBox tool is in a loading state. Use this to show a loading indicator in the UI.
false
Events
aiAssistantCancelRequest
EventEmitter<undefined>
Emits when the user clicks the Cancel button.
Emits before the SmartBox tool sends the AI request.
- When you provide a
requestUrl, you can handle the event to modify the request options. - When you do not provide a
requestUrl, you can handle the event to perform an entirely custom request.
Emits when the SmartBox tool completes the AI request with an error. The event contains the error response from the AI service and is preventable to allow stopping the default error handling.
Emits when the SmartBox tool completes the AI request successfully. The event contains the response from the AI service and is preventable to allow stopping the default response handling.
close
EventEmitter<any>
Emits when the SmartBox tool closes.
inputBlur
EventEmitter<any>
Emits when the SmartBox tool input is blurred.
inputFocus
EventEmitter<any>
Emits when the SmartBox tool input is focused.
Emits when the mode of the SmartBox tool changes. The event contains the new mode.
open
EventEmitter<any>
Emits when the SmartBox tool opens.
Emits when the user types in Search mode. The event contains the search query and the filter descriptors created based on the query.
Emits when the user types in Semantic Search mode. The event contains the search query and the filter descriptors created based on the query.
Methods
Determines if the tool can receive focus.
Returns true if the tool participates in keyboard navigation.
boolean
true if the tool is focusable.
Called when the tool receives focus.
Accepts the original browser event, which can be a KeyboardEvent, MouseEvent, or FocusEvent.
The event that triggers focus for the tool.
Called when the tool is focused and an arrow key is pressed.
Returns a boolean value that determines if the ToolBarComponent moves focus to the next or previous tool
(see example).
The last pressed arrow key.
Returns:boolean
true if focus moves to another tool.