PromptBoxBuilder
Defines the fluent API for configuring the Kendo PromptBox for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class PromptBoxBuilder : WidgetBuilderBase<PromptBox, PromptBoxBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<PromptBox, PromptBoxBuilder>PromptBoxBuilder
Implements:
Inherited Members
Constructors
Methods
Configures the Action button (send/stop) in the end affix. The button is always visible. When null or not configured, the button is enabled by default. Use { enable: false } to disable it.
public PromptBoxBuilder ActionButton(Action<PromptBoxActionButtonSettingsBuilder> configurator)
The action that configures the actionbutton.
Returns:If set to false, the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.
public PromptBoxBuilder Enable(bool value)
The value that configures the enable.
Returns:Defines a custom template for the end affix area. The end affix is positioned after the input field and typically contains action buttons.
public PromptBoxBuilder EndAffixTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the endaffixtemplate.
Returns:Defines a custom template for the end affix area. The end affix is positioned after the input field and typically contains action buttons.
public PromptBoxBuilder EndAffixTemplateHandler(string value)
The value that configures the endaffixtemplate.
Returns:Configures the client-side events.
public PromptBoxBuilder Events(Action<PromptBoxEventBuilder> configurator)
The client events action.
Returns:Controls the visibility and configuration of the File Select button in the end affix. When enabled, users can attach files to their prompts.
Controls the visibility and configuration of the File Select button in the end affix. When enabled, users can attach files to their prompts.
public PromptBoxBuilder FileSelectButton(Action<PromptBoxFileSelectButtonSettingsBuilder> configurator)
The action that configures the fileselectbutton.
Returns:Controls the visibility and configuration of the File Select button in the end affix. When enabled, users can attach files to their prompts.
public PromptBoxBuilder FileSelectButton(bool enabled)
Enables or disables the fileselectbutton option.
Returns:Defines the fill mode for the PromptBox container.
public PromptBoxBuilder FillMode(FillMode value)
The value that configures the fillmode.
Returns:Sets the loading state of the Action button. When true, the button displays a stop icon and allows users to cancel ongoing generation.
public PromptBoxBuilder Loading(bool value)
The value that configures the loading.
Returns:Sets the maximum height of the textarea in pixels. The textarea resizes automatically until it reaches this height. When the content exceeds this height, a scrollbar appears.
public PromptBoxBuilder MaxTextAreaHeight(double value)
The value that configures the maxtextareaheight.
Returns:Defines the localization messages for the PromptBox.
public PromptBoxBuilder Messages(Action<PromptBoxMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns:Sets the mode of the PromptBox. Available options are "single", "multi", and "auto". single - Displays a single-line input field; multi - Displays a multi-line textarea with configurable rows or auto - Starts as a single line and expands automatically as the user types.
public PromptBoxBuilder Mode(PromptBoxMode value)
The value that configures the mode.
Returns:Sets the placeholder text displayed in the PromptBox when it is empty.
public PromptBoxBuilder Placeholder(string value)
The value that configures the placeholder.
Returns:Sets the read-only state of the PromptBox. When set to true, the PromptBox content cannot be modified but remains accessible.
public PromptBoxBuilder Readonly(bool value)
The value that configures the readonly.
Returns:Sets the number of visible text lines in the textarea. Applies only when the mode is set to "multi".
public PromptBoxBuilder Rows(double value)
The value that configures the rows.
Returns:Configures the Speech to Text button in the end affix. The button is always visible. When null or not configured, the button is enabled by default. Use { enable: false } to disable it.
public PromptBoxBuilder SpeechToTextButton(Action<PromptBoxSpeechToTextButtonSettingsBuilder> configurator)
The action that configures the speechtotextbutton.
Returns:Configures the Speech to Text button in the end affix. The button is always visible. When null or not configured, the button is enabled by default. Use { enable: false } to disable it.
public PromptBoxBuilder SpeechToTextButton(bool enabled)
Enables or disables the speechtotextbutton option.
Returns:Defines a custom template for the start affix area. The start affix is positioned before the input field.
public PromptBoxBuilder StartAffixTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the startaffixtemplate.
Returns:Defines a custom template for the start affix area. The start affix is positioned before the input field.
public PromptBoxBuilder StartAffixTemplateHandler(string value)
The value that configures the startaffixtemplate.
Returns:Sets the title attribute of the input or textarea element.
public PromptBoxBuilder Title(string value)
The value that configures the title.
Returns:Defines a custom template for the top affix area. The top affix is positioned at the top of the content area in multi-line mode only.
public PromptBoxBuilder TopAffixTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the topaffixtemplate.
Returns:Defines a custom template for the top affix area. The top affix is positioned at the top of the content area in multi-line mode only.
public PromptBoxBuilder TopAffixTemplateHandler(string value)
The value that configures the topaffixtemplate.
Returns:Sets the value of the PromptBox.
public PromptBoxBuilder Value(string value)
The value that configures the value.
Returns: