Defines the fluent API for configuring GridSmartBoxSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class GridSmartBoxSettingsBuilder<T> where T : class
Inheritance: objectGridSmartBoxSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the GridSmartBoxSettingsBuilder<T> class.
public GridSmartBoxSettingsBuilder(GridSmartBoxSettings<T> container)
Properties
Gets the container settings.
protected GridSmartBoxSettings<T> Container { get; }
Methods
Defines the active mode of the SmartBox.
public GridSmartBoxSettingsBuilder<T> ActiveMode(SmartBoxActiveMode value)
The value for ActiveMode
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current GridSmartBoxSettingsBuilder<T> instance.
Configures the initial settings for the AI Assistant mode.
public GridSmartBoxSettingsBuilder<T> AiAssistantSettings(Action<GridSmartBoxAiAssistantSettingsSettingsBuilder<T>> configurator)
The GridSmartBoxAiAssistantSettingsSettingsBuilder<T> for the aiassistantsettings setting.
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current instance of GridSmartBoxSettingsBuilder<T> .
Configures the client-side events.
public GridSmartBoxSettingsBuilder<T> Events(Action<GridSmartBoxEventBuilder> configurator)
The client events action.
Returns:GridSmartBoxSettingsBuilder<T>
The current GridSmartBoxSettingsBuilder<T> instance for method chaining.
Sets 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.
public GridSmartBoxSettingsBuilder<T> History()
GridSmartBoxSettingsBuilder<T>
Returns the current instance of GridSmartBoxHistorySettingsBuilder<T> .
Sets 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.
public GridSmartBoxSettingsBuilder<T> History(Action<GridSmartBoxHistorySettingsBuilder<T>> configurator)
The GridSmartBoxHistorySettingsBuilder<T> for the history setting.
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current instance of GridSmartBoxSettingsBuilder<T> .
Sets 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.
public GridSmartBoxSettingsBuilder<T> History(bool enabled)
Enables or disables the history option.
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current instance of GridSmartBoxHistorySettingsBuilder<T> .
Represents the template for a history query in the SmartBox component.
public GridSmartBoxSettingsBuilder<T> HistoryItemTemplate(string value)
The value for HistoryItemTemplate
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current GridSmartBoxSettingsBuilder<T> instance.
Represents the template for a history query in the SmartBox component.
public GridSmartBoxSettingsBuilder<T> HistoryItemTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the historyitemtemplate.
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current GridSmartBoxSettingsBuilder<T> instance.
Represents the template for a history query in the SmartBox component.
public GridSmartBoxSettingsBuilder<T> HistoryItemTemplateHandler(string templateHandler)
The handler that returs the template for HistoryItemTemplate
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current GridSmartBoxSettingsBuilder<T> instance.
Represents the template for a history query in the SmartBox component.
public GridSmartBoxSettingsBuilder<T> HistoryItemTemplateId(string templateId)
The ID of the template element for HistoryItemTemplate
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current GridSmartBoxSettingsBuilder<T> instance.
The unified placeholder text of the SmartBox input independent of the activated mode.
public GridSmartBoxSettingsBuilder<T> Placeholder(string value)
The value for Placeholder
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current GridSmartBoxSettingsBuilder<T> instance.
Configures the initial settings for the Search mode.
public GridSmartBoxSettingsBuilder<T> SearchSettings(Action<GridSmartBoxSearchSettingsSettingsBuilder<T>> configurator)
The GridSmartBoxSearchSettingsSettingsBuilder<T> for the searchsettings setting.
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current instance of GridSmartBoxSettingsBuilder<T> .
Configures the initial settings for the Semantic Search mode.
public GridSmartBoxSettingsBuilder<T> SemanticSearchSettings(Action<GridSmartBoxSemanticSearchSettingsSettingsBuilder<T>> configurator)
The GridSmartBoxSemanticSearchSettingsSettingsBuilder<T> for the semanticsearchsettings setting.
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current instance of GridSmartBoxSettingsBuilder<T> .
Represents the template for a suggestion in the SmartBox component AI Assistant mode.
public GridSmartBoxSettingsBuilder<T> SuggestionTemplate(string value)
The value for SuggestionTemplate
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current GridSmartBoxSettingsBuilder<T> instance.
Represents the template for a suggestion in the SmartBox component AI Assistant mode.
public GridSmartBoxSettingsBuilder<T> SuggestionTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the suggestiontemplate.
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current GridSmartBoxSettingsBuilder<T> instance.
Represents the template for a suggestion in the SmartBox component AI Assistant mode.
public GridSmartBoxSettingsBuilder<T> SuggestionTemplateHandler(string templateHandler)
The handler that returs the template for SuggestionTemplate
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current GridSmartBoxSettingsBuilder<T> instance.
Represents the template for a suggestion in the SmartBox component AI Assistant mode.
public GridSmartBoxSettingsBuilder<T> SuggestionTemplateId(string templateId)
The ID of the template element for SuggestionTemplate
Returns:GridSmartBoxSettingsBuilder<T>
Returns the current GridSmartBoxSettingsBuilder<T> instance.