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

Kendo UI GanttToolbar TagHelper GanttToolbarTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("toolbar", ParentTag = "toolbars", TagStructure = TagStructure.NormalOrSelfClosing)]
[SuppressTagRendering]
public class GanttToolbarTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseGanttToolbarTagHelper

Implements: ITagHelperITagHelperComponent

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-gantt name="gantt">
    <toolbars>
        <toolbar name="append"></toolbar>
    </toolbars>
</kendo-gantt>

Constructors

Initializes a new instance of the GanttToolbarTagHelper class.

C#
public GanttToolbarTagHelper()

Properties

The name of the toolbar command. Either a built-in ("append" and "pdf") or custom. The name is reflected in one of the CSS classes, which is applied to the button - k-gantt-name. This class can be used to obtain reference to the button after Gantt initialization and attach click handlers.

C#
public string Name { get; set; }

The template which renders the command. By default renders a button.

C#
public string Template { get; set; }

The template which renders the command. By default renders a button. 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 which renders the command. By default renders a button. This option expects the ID of the script element that contains the template.

C#
public string TemplateId { get; set; }

The template which renders the command. By default renders a button. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent TemplateView { get; set; }

The text displayed by the command button. If not set the name` option would be used as the button text instead.

C#
public string Text { 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>