TabStripItemActionBuilder

Methods

Icon(System.String)

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

Parameters

value - System.String

The value for Icon

Example

Razor
 
             @( Html.Kendo().TabStrip()
                        .Name("TabStrip")
                        .Items(items =>
                        {
                            items.Add().Text("First Item")
                                .Actions(actions =>
                                {
                                    actions.Add().Icon("gear");
                                });
                        })
             )
             

IconClass(System.String)

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.

Parameters

value - System.String

The value for IconClass

Example

Razor
 
             @( Html.Kendo().TabStrip()
                        .Name("TabStrip")
                        .Items(items =>
                        {
                            items.Add().Text("First Item")
                                .Actions(actions =>
                                {
                                    actions.Add().IconClass("test");
                                });
                        })
             )
             

HtmlAttributes(System.Collections.Generic.IDictionary)

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

Parameters

value - System.Collections.Generic.IDictionary<String,Object>

The value for HtmlAttributes

Example

Razor
 
             @( Html.Kendo().TabStrip()
                        .Name("TabStrip")
                        .Items(items =>
                        {
                            items.Add().Text("First Item")
                                .Actions(actions =>
                                {
                                    actions.Add()
                                     .HtmlAttributes(new Dictionary<string, object> { {"style", "color:green" } });
                                });
                        })
             )
             

HtmlAttributes(System.Object)

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

Parameters

value - System.Object

The value for HtmlAttributes

Example

Razor
 
             @( Html.Kendo().TabStrip()
                        .Name("TabStrip")
                        .Items(items =>
                        {
                            items.Add().Text("First Item")
                                .Actions(actions =>
                                {
                                    actions.Add().HtmlAttributes(new {style="color:green"});
                                });
                        })
             )
             

Action(System.String)

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

Parameters

handler - System.String

The name of the JavaScript function that will be evaluated.

Example

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