Kendo UI speechToTextButton TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("speech-to-text-button", ParentTag = "kendo-promptbox", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("icon", new string[] { })]
[SuppressTagRendering]
public class PromptBoxSpeechToTextButtonSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBasePromptBoxSpeechToTextButtonSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-promptbox name="promptbox">
<speech-to-text-button continuous="true" />
</kendo-promptbox>
Child Tags
Constructors
Initializes a new instance of the PromptBoxSpeechToTextButtonSettingsTagHelper class.
public PromptBoxSpeechToTextButtonSettingsTagHelper()
Properties
Enables continuous speech recognition mode. When enabled, recognition continues until manually stopped.
public bool? Continuous { get; set; }
Defines the fill mode for the Speech to Text button.
public ButtonFillMode? FillMode { get; set; }
Defines the font icon name for the Speech to Text button.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
[HtmlAttributeName("icon")]
public string Icon { get; set; }
Enables interim (partial) speech recognition results.
public bool? InterimResults { get; set; }
Sets the language for speech recognition. Use standard language codes.
public string Lang { get; set; }
Sets the maximum number of alternative transcriptions to return.
public double? MaxAlternatives { get; set; }
Defines the border radius for the Speech to Text button.
public Rounded? Rounded { get; set; }
Defines the size of the Speech to Text button.
public ComponentSize? Size { get; set; }
Defines the theme color for the Speech to Text button.
public ThemeColor? ThemeColor { get; set; }
Methods
Adds the current instance to the parent TagHelper, if applicable.
protected override void AddSelfToParent(TagHelperContext context)
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.