AppBarTagHelper
Class
Kendo UI AppBar TagHelper AppBarTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
C#
[HtmlTargetElement("kendo-appbar")]
[RestrictChildren("items", new string[] { })]
public class AppBarTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseAppBarTagHelper
Implements:
Inherited Members
Example:
csharp
@addTagHelper *, Kendo.Mvc
<kendo-appbar name="appbar">
<items>
<appbar-item type="AppBarItemType.ContentItem" template="<button class='k-button k-button-primary'>Categories</button>"></appbar-item>
<appbar-item type="AppBarItemType.Spacer"></appbar-item>
<appbar-item type="AppBarItemType.ContentItem" template="<button class='k-button'>Items</button>"></appbar-item>
</items>
</kendo-appbar>
Child Tags
Constructors
Initializes a new instance of the AppBarTagHelper class.
Properties
The name of the JavaScript function that will handle the resize event. Fired when the window is resized.
C#
public string OnResize { get; set; }
Defines where in the page the AppBar will be positioned
C#
public AppBarPosition? Position { get; set; }
Defines the type of positioning
C#
public AppBarPositionMode? PositionMode { get; set; }
Specifies the color of the component
C#
public AppBarThemeColor? ThemeColor { get; set; }
Methods
Gets the initialization script.
C#
protected override string GetInitializationScript()
The initialization script.
Overrides:
C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
C#
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
C#
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
C#
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
C#
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: