DrawerBuilder
Defines the fluent API for configuring the Telerik UI for ASP.NET Core Drawer.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DrawerBuilder : WidgetBuilderBase<Drawer, DrawerBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Drawer, DrawerBuilder>DrawerBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the DrawerBuilder class.
Methods
Specifies if the Drawer will be automatically collapsed when an item is clicked.
public DrawerBuilder AutoCollapse(bool value)
The value for AutoCollapse
Returns:Returns the current DrawerBuilder instance.
Defines the associated content for the Drawer.
public DrawerBuilder Content(Action value)
The value of the content.
Returns:The HTML string representing the associated content for the Drawer.
public DrawerBuilder Content(Func<object, object> value)
The value wrapped in a text tag.
Returns:Returns the current instance of DrawerBuilder to allow method chaining.
Sets the HTML content of the Drawer from a partial view.
public DrawerBuilder Content(IHtmlContent partialView)
The partial view that provides the HTML content.
Returns:Returns the current instance of DrawerBuilder to allow method chaining.
The HTML string representing the associated content for the Drawer.
public DrawerBuilder Content(string value)
The value of the content.
Returns:Returns the current instance of DrawerBuilder to allow method chaining.
Configures the client-side events.
public DrawerBuilder Events(Action<DrawerEventBuilder> configurator)
The client events action.
Returns:Returns the current DrawerBuilder instance.
Specifies if the Drawer will be expanded by default.
Specifies if the Drawer will be expanded by default.
public DrawerBuilder Expanded(bool value)
The value for Expanded
Returns:Returns the current DrawerBuilder instance.
Specifies the items rendered by the Drawer when the top-level template option is not set. Each item can define text, icon, state, custom attributes, per-item template functions, and nested child items through items.items. If template is configured, it takes precedence and the items configuration is ignored.
public DrawerBuilder Items(Action<DrawerItemFactory> configurator)
The DrawerItemFactory for the items setting.
Returns:Returns the current instance of DrawerBuilder .
Specifies the minimum height for the drawer in push mode. The overlay mode takes 100% of the page height.
public DrawerBuilder MinHeight(double value)
The value for MinHeight
Returns:Returns the current DrawerBuilder instance.
Enables or configures the mini mode for the Kendo UI Drawer. This is a compact view that is displayed when the Kendo UI Drawer is collapsed. Usually it used to show only the icons when the drawer content contains icon and text for an item. When set to true it uses the main template.
public DrawerBuilder Mini(Action<DrawerMiniSettingsBuilder> configurator)
The DrawerMiniSettingsBuilder for the mini setting.
Returns:Returns the current instance of DrawerBuilder .
Enables or configures the mini mode for the Kendo UI Drawer. This is a compact view that is displayed when the Kendo UI Drawer is collapsed. Usually it used to show only the icons when the drawer content contains icon and text for an item. When set to true it uses the main template.
public DrawerBuilder Mini(bool enabled)
Enables or disables the mini option.
Returns:Returns the current instance of DrawerMiniSettingsBuilder .
Determines how the Kendo UI Drawer will interact with the associated content. The default one (overlay) will simply overlap the associated content with overlay effect. On the other hand "push" mode will show the drawer next to associated cotent. The associated content will shrink its content.
public DrawerBuilder Mode(string value)
The value for Mode
Returns:Returns the current DrawerBuilder instance.
If set to true the use could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.
If set to true the use could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.
public DrawerBuilder Navigatable(bool value)
The value for Navigatable
Returns:Returns the current DrawerBuilder instance.
The position of the drawer. Can be left (default) or right.
public DrawerBuilder Position(string value)
The value for Position
Returns:Returns the current DrawerBuilder instance.
If set to false, swiping the associated content will not activate the drawer. In this case, the drawer will only be open by calling the show method. should be disabled for browsers, which use side swiping gestures for back/forward navigation, such as iOS Safari. Otherwise, users should swipe from an inner part of the view, and not from the view edge.
public DrawerBuilder SwipeToOpen(bool value)
The value for SwipeToOpen
Returns:Returns the current DrawerBuilder instance.
Specifies the drawer's content. When configured, it takes precedence over items.
public DrawerBuilder Template(string value)
The value for Template
Returns:Returns the current DrawerBuilder instance.
Specifies the drawer's content. When configured, it takes precedence over items.
public DrawerBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Returns the current DrawerBuilder instance.
Specifies the drawer's content. When configured, it takes precedence over items.
public DrawerBuilder TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:Returns the current DrawerBuilder instance.
Specifies the drawer's content. When configured, it takes precedence over items.
public DrawerBuilder TemplateId(string templateId)
The ID of the template element for Template
Returns:Returns the current DrawerBuilder instance.
Specifies the drawer's content. When configured, it takes precedence over items.
public DrawerBuilder TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:Returns the current DrawerBuilder instance.
Defines a specific width for the Kendo UI Drawer when expanded.
public DrawerBuilder Width(double value)
The value for Width
Returns:Returns the current DrawerBuilder instance.