Kendo UI SmartPasteButtonFormField TagHelper SmartPasteButtonFormFieldTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
C#
[HtmlTargetElement("form-field", ParentTag = "form-fields", TagStructure = TagStructure.NormalOrSelfClosing)]
[SuppressTagRendering]
public class SmartPasteButtonFormFieldTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseSmartPasteButtonFormFieldTagHelper
Implements:
Inherited Members
Example:
csharp
@addTagHelper *, Kendo.Mvc
<kendo-smartpastebutton name="smartPasteButton">
<form-fields>
<form-field name="formField" allowed-values="@(new string[] { "Value1", "Value2", "Value3" })" />
</form-fields>
</kendo-smartpastebutton>
Constructors
Initializes a new instance of the SmartPasteButtonFormFieldTagHelper class.
C#
public SmartPasteButtonFormFieldTagHelper()
Properties
An array of allowed values that restricts the AI service to only use specific values for this field.
C#
public string[] AllowedValues { get; set; }
A description of the form field that helps the AI service understand its purpose.
C#
public string Description { get; set; }
The name of the form field that corresponds to a form element.
C#
public string Field { get; set; }
Methods
Adds the current instance to the parent TagHelper, if applicable.
C#
protected override void AddSelfToParent(TagHelperContext context)
Overrides:
C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.