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

Defines the fluent API for configuring TabStripItemAction

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class TabStripItemActionBuilder

Inheritance: objectTabStripItemActionBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public TabStripItemActionBuilder(TabStripItemAction container)
Parameters:containerTabStripItemAction

Properties

C#
protected TabStripItemAction Container { get; }

Methods

A function to be executed when the action button is clicked. The event object is passed as a parameter to the function.

C#
public TabStripItemActionBuilder Action(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

TabStripItemActionBuilder

Example:
C#
@( Html.Kendo().TabStrip()
.Name("TabStrip")
.Items(items =>
{
items.Add().Text("First Item")
.Actions(actions =>
{
actions.Add().Action("myHandler");
});
})
)

Defines custom attributes to be applied to the action button element.

C#
public TabStripItemActionBuilder HtmlAttributes(IDictionary<string, object> value)
Parameters:valueIDictionary<string, object>

The value for HtmlAttributes

Returns:

TabStripItemActionBuilder

Example:
C#
@( Html.Kendo().TabStrip()
.Name("TabStrip")
.Items(items =&gt;
{
items.Add().Text("First Item")
.Actions(actions =&gt;
{
actions.Add()
.HtmlAttributes(new Dictionary&lt;string, object&gt; { {"style", "color:green" } });
});
})
)

Defines custom attributes to be applied to the action button element.

C#
public TabStripItemActionBuilder HtmlAttributes(object value)
Parameters:valueobject

The value for HtmlAttributes

Returns:

TabStripItemActionBuilder

Example:
C#
@( Html.Kendo().TabStrip()
.Name("TabStrip")
.Items(items =&gt;
{
items.Add().Text("First Item")
.Actions(actions =&gt;
{
actions.Add().HtmlAttributes(new {style="color:green"});
});
})
)

Defines the name for an existing icon in a Kendo UI theme or SVG content that is used for the action button.

C#
public TabStripItemActionBuilder Icon(string value)
Parameters:valuestring

The value for Icon

Returns:

TabStripItemActionBuilder

Example:
C#
@( Html.Kendo().TabStrip()
.Name("TabStrip")
.Items(items =&gt;
{
items.Add().Text("First Item")
.Actions(actions =&gt;
{
actions.Add().Icon("gear");
});
})
)

If set, this value will be appended to the action button's icon element class attribute. Provides an alternative way to specify an icon using custom CSS classes.

C#
public TabStripItemActionBuilder IconClass(string value)
Parameters:valuestring

The value for IconClass

Returns:

TabStripItemActionBuilder

Example:
C#
@( Html.Kendo().TabStrip()
.Name("TabStrip")
.Items(items =&gt;
{
items.Add().Text("First Item")
.Actions(actions =&gt;
{
actions.Add().IconClass("test");
});
})
)