Defines the fluent API for configuring BottomNavigationItem
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class BottomNavigationItemBuilder
Inheritance: objectBottomNavigationItemBuilder
Inherited Members
Constructors
BottomNavigationItemBuilder method.
public BottomNavigationItemBuilder(BottomNavigationItem container)
Properties
Gets the settings being configured.
protected BottomNavigationItem Container { get; }
Methods
Defines the attributes of the item.
public BottomNavigationItemBuilder Attributes(object attributes)
The object to be mapped to the attribute collection
Returns:Returns the current BottomNavigationItemBuilder instance.
Defines the class names of the item's element.
public BottomNavigationItemBuilder CssClass(string value)
The value for CssClass
Returns:Returns the current BottomNavigationItemBuilder instance.
The contextual data of the item.
public BottomNavigationItemBuilder Data(object data)
The data object
Returns:Returns the current BottomNavigationItemBuilder instance.
Toggles the enabled state of the item.
public BottomNavigationItemBuilder Enabled(bool value)
The value for Enabled
Returns:Returns the current BottomNavigationItemBuilder instance.
If false, the text will be able to render HTML.
public BottomNavigationItemBuilder Encoded(bool value)
The value for Encoded
Returns:Returns the current BottomNavigationItemBuilder instance.
Defines the name for an existing icon in a Kendo UI theme.See web font icons help article for more details on Kendo UI icons.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.
public BottomNavigationItemBuilder Icon(Action<BottomNavigationItemIconSettingsBuilder> configurator)
The BottomNavigationItemIconSettingsBuilder for the icon setting.
Returns:Returns the current instance of BottomNavigationItemBuilder .
Defines the name for an existing icon in a Kendo UI theme.See web font icons help article for more details on Kendo UI icons.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.
public BottomNavigationItemBuilder Icon(string icon)
The icon.
Returns:Returns the current instance of BottomNavigationItemBuilder .
Defines the class name added to the icon element.
public BottomNavigationItemBuilder IconClass(string value)
The value for IconClass
Returns:Returns the current BottomNavigationItemBuilder instance.
Toggles the selected state of the item.
public BottomNavigationItemBuilder Selected()
Returns the current BottomNavigationItemBuilder instance.
Toggles the selected state of the item.
public BottomNavigationItemBuilder Selected(bool value)
The value for Selected
Returns:Returns the current BottomNavigationItemBuilder instance.
Sets a custom template for the item (overrides the template option).
public BottomNavigationItemBuilder Template(string value)
The value for Template
Returns:Returns the current BottomNavigationItemBuilder instance.
Sets a custom template for the item (overrides the template option).
public BottomNavigationItemBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Returns the current BottomNavigationItemBuilder instance.
Sets a custom template for the item (overrides the template option).
public BottomNavigationItemBuilder TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:Returns the current BottomNavigationItemBuilder instance.
Sets a custom template for the item (overrides the template option).
public BottomNavigationItemBuilder TemplateId(string templateId)
The ID of the template element for Template
Returns:Returns the current BottomNavigationItemBuilder instance.
Sets a custom template for the item (overrides the template option).
public BottomNavigationItemBuilder TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:Returns the current BottomNavigationItemBuilder instance.
The text of the item. It is optional - if not set, no text will be rendered.
public BottomNavigationItemBuilder Text(string value)
The value for Text
Returns:Returns the current BottomNavigationItemBuilder instance.
The URL (href) to which the item will navigate to.
public BottomNavigationItemBuilder Url(string value)
The value for Url
Returns:Returns the current BottomNavigationItemBuilder instance.