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

Defines the fluent API for configuring AppBarItem

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class AppBarItemBuilder

Inheritance: objectAppBarItemBuilder

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

Constructors

AppBarItemBuilder method.

C#
public AppBarItemBuilder(AppBarItem container)
Parameters:containerAppBarItem

Properties

Gets the settings being configured.

C#
protected AppBarItem Container { get; }

Methods

Defines a set CSS classes for the item.

C#
public AppBarItemBuilder ClassName(string value)
Parameters:valuestring

The value for ClassName

Returns:

AppBarItemBuilder

Returns the current AppBarItemBuilder instance.

The template which renders as content for the appbar item. Valid only for the contentItem type

C#
public AppBarItemBuilder Template(string value)
Parameters:valuestring

The value for Template

Returns:

AppBarItemBuilder

Returns the current AppBarItemBuilder instance.

The template which renders as content for the appbar item. Valid only for the contentItem type

C#
public AppBarItemBuilder Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

AppBarItemBuilder

Returns the current AppBarItemBuilder instance.

The template which renders as content for the appbar item. Valid only for the contentItem type

C#
public AppBarItemBuilder TemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for Template

Returns:

AppBarItemBuilder

Returns the current AppBarItemBuilder instance.

The template which renders as content for the appbar item. Valid only for the contentItem type

C#
public AppBarItemBuilder TemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for Template

Returns:

AppBarItemBuilder

Returns the current AppBarItemBuilder instance.

The template which renders as content for the appbar item. Valid only for the contentItem type

C#
public AppBarItemBuilder TemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for Template

Returns:

AppBarItemBuilder

Returns the current AppBarItemBuilder instance.

Defines the type of positioning

C#
public AppBarItemBuilder Type(AppBarItemType value)
Parameters:valueAppBarItemType

The value for Type

Returns:

AppBarItemBuilder

Returns the current AppBarItemBuilder instance.

Determines the width of the item. Valid only for the spacer items. Numeric values are treated as pixels.

C#
public AppBarItemBuilder Width(string value)
Parameters:valuestring

The value for Width

Returns:

AppBarItemBuilder

Returns the current AppBarItemBuilder instance.