DrawerBuilder
Defines the fluent API for configuring the Telerik UI Drawer for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class DrawerBuilder : WidgetBuilderBase<Drawer, DrawerBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Drawer, DrawerBuilder>DrawerBuilder
Implements:
Inherited Members
Constructors
Methods
Specifies if the Drawer will be automatically collapsed when an item is clicked.
public DrawerBuilder AutoCollapse(bool value)
The value that configures the collapsed state of the item.
Returns:Defines the associated content for the Drawer.
public DrawerBuilder Content(Action value)
The value for the content.
Returns:Sets the HTML content of the Drawer from a partial view.
public DrawerBuilder Content(MvcHtmlString partialView)
The partial view that provides the HTML content.
Returns:The HTML string representing the associated content for the Drawer.
public DrawerBuilder Content(string value)
The value for the content.
Returns:Handles the client-side events of the Drawer.
public DrawerBuilder Events(Action<DrawerEventBuilder> configurator)
The action that configures the available events.
Returns:Specifies if the Drawer will be expanded by default.
public DrawerBuilder Expanded(bool value)
The value that configures the expanded state of the Drawer.
Returns: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 action that configures the items.
Returns:Specifies the minimum height for the Drawer when the "push" mode is enabled. The "overlay" mode takes 100% of the page height.
public DrawerBuilder MinHeight(double value)
The value that configures the minimum height.
Returns:Configures the "mini" mode of the Drawer - a compact view that is displayed when the Drawer is collapsed. Usually, it used to show only the icons when the Drawer's item contains icon and text. When it is enabled, it uses the main template.
public DrawerBuilder Mini(Action<DrawerMiniSettingsBuilder> configurator)
The action that configures the "mini" mode.
Returns:Enables the "mini" mode of the Drawer - a compact view that is displayed when the Drawer is collapsed. Usually, it used to show only the icons when the Drawer's item contains icon and text. When it is enabled, it uses the main template.
public DrawerBuilder Mini(bool enabled)
Enables or disables the "mini" mode.
Returns:Determines how the Drawer will interact with the associated content. The default mode ("overlay") will overlap the respective content with an overlay effect. The "push" mode will show the Drawer next to the content. The associated item will shrink its content.
public DrawerBuilder Mode(string value)
The value that configures the mode option.
Returns:Enables the keyboard navigation of the Drawer. By default keyboard navigation is disabled.
public DrawerBuilder Navigatable(bool value)
The value that enables the keyboard navigation.
Returns:Sets the position of the Drawer. It can be left (default) or right.
public DrawerBuilder Position(string value)
The value that configures the Drawer position.
Returns:By default, the users must swipe the respective content from an inner part of the view to activate the Drawer. When the option is disabled, swiping the associated content will not activate the Drawer. The Drawer will only be open by calling the show() client-side method. The option must be disabled for browsers that use side-swiping gestures for back/forward navigation, such as iOS Safari.
public DrawerBuilder SwipeToOpen(bool value)
The value that configures the swipe option.
Returns:Specifies the Drawer's content.
public DrawerBuilder Template(string value)
The value that configures the template.
Returns:Specifies the Drawer's content.
public DrawerBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Specifies the Drawer's content.
public DrawerBuilder TemplateHandler(string value)
The value that configures the template.
Returns:Specifies the Drawer's content.
public DrawerBuilder TemplateId(string value)
The value that configures the template.
Returns:Specifies the Drawer's content.
public DrawerBuilder TemplateView(MvcHtmlString value)
The value that configures the template.
Returns:Defines a specific width for the Drawer when it is expanded.
public DrawerBuilder Width(double value)
The value that configures the width.
Returns: