New to Kendo UI for AngularStart a free 30-day trial

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:

html
<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.

Default:

'search'

Controls the visibility and settings of the AI Assistant mode. By default, the mode is disabled.

Default:

false

Controls the visibility and settings of the history for each mode.

Sets the placeholder of the input element in the SmartBox and applies to all modes.

Controls the visibility and settings of the Search mode. By default, the mode is enabled.

Default:

true

Controls the visibility and settings of the Semantic Search mode. By default, the mode is disabled.

Default:

false

Specifies the padding of the input.

Default:

'medium'

Fields

loading

boolean

Indicates whether the SmartBox tool is in a loading state. Use this to show a loading indicator in the UI.

Default:

false

Events

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.

Emits when the SmartBox tool closes.

Emits when the SmartBox tool input is blurred.

Emits when the SmartBox tool input is focused.

Emits when the mode of the SmartBox tool changes. The event contains the new mode.

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.

Returns:

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.

Parameters:_ev?Event

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).

Parameters:_evKeyboardEvent

The last pressed arrow key.

Returns:

boolean

true if focus moves to another tool.