New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI suffixOptions TagHelper TextAreaSuffixOptionsSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("suffix-options", ParentTag = "kendo-textarea", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("suffix-options", ParentTag = "textarea-editor", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("suffix-template", new string[] { "textarea-suffix-options-icon" })]
[SuppressTagRendering]
public class TextAreaSuffixOptionsSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent

Inheritance: objectTagHelperTagHelperChildBaseTextAreaSuffixOptionsSettingsTagHelper

Implements: ITagHelperITagHelperComponentITemplateComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-textarea name="textarea">
    <suffix-options icon="search"></suffix-options>
</kendo-textarea>

Constructors

Initializes a new instance of the TextAreaSuffixOptionsSettingsTagHelper class.

C#
public TextAreaSuffixOptionsSettingsTagHelper()

Properties

Defines the name for an existing icon in a Kendo UI theme or SVG contentSet 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.

C#
[HtmlAttributeName("icon")]
public string Icon { get; set; }

If set to false, the suffix adornment will not have a separator.

C#
public bool? Separator { get; set; }

The template for the suffix adornment of the component.

C#
public string Template { get; set; }

The template for the suffix adornment of the component. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string TemplateHandler { get; set; }

The template for the suffix adornment of the component. This option expects the ID of the script element that contains the template.

C#
public string TemplateId { get; set; }

Represents a collection of templates defined for the component.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

The template for the suffix adornment of the component. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent TemplateView { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>