BreadcrumbTagHelper
Kendo UI Breadcrumb TagHelper BreadcrumbTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-breadcrumb")]
[RestrictChildren("messages", new string[] { "kendo-breadcrumb-items", "delimiter-icon", "root-icon" })]
public class BreadcrumbTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseBreadcrumbTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-breadcrumb name="breadcrumb" bind-to-location="true"></kendo-breadcrumb>
Child Tags
Constructors
Initializes a new instance of the BreadcrumbTagHelper class.
public BreadcrumbTagHelper(IKendoHtmlGenerator generator)
Properties
Indicates whether the Breadcrumb will enable/disable the binding to the location object of the browser on initialization.
public bool? BindToLocation { get; set; }
Defines a name of an existing icon in the Kendo UI Web Font Icons. The icon will be applied as separator between the segments of the Breadcrumb path.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
[HtmlAttributeName("delimiter-icon")]
public string DelimiterIcon { get; set; }
Indicates whether the editing functionality of the Breadcrumb will be enabled/disabled.If the option is enabled the path will be editable. Clicking in an empty area of the component will trigger editing mode. Editing mode shows an input showing the value of the component enabling the end user to type a new path.
public bool? Editable { get; set; }
Defines the space in pixels after the last item to stay empty.The gap value is taken into account when items overflow and continues to remain empty.
public double? Gap { get; set; }
Indicates whether the navigation functionality of the Breadcrumb will be enabled/disabled.When navigational is set to false, automatic navigation (changing url location) is disabled by default. In this state, the click event will be prevented and navigation will occur only if programmatic navigation is implemented.When navigational is set to true, the url (path) will be automatically added to the href attribute of the rendered links. In this state, the click event will trigger navigation.
public bool? Navigational { get; set; }
The name of the JavaScript function that will handle the change event. Fires when the value of the Breadcrumb is changed.
public string OnChange { get; set; }
The name of the JavaScript function that will handle the click event. Fires when an item or a rootitem is clicked.
public string OnClick { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the Breadcrumb is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
Defines a name of an existing icon in the Kendo UI Web Font Icons. The icon will be applied as the first item(root) of Breadcrumb path.The root icon is clickable and resets the value of the component.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
[HtmlAttributeName("root-icon")]
public string RootIcon { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
Sets the HTML tag to be rendered by the Breadcrumb. Renders a nav tag by default.
public string Tag { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: