Kendo.Mvc.UI.Fluent.DrawerBuilder

Defines the fluent API for configuring the Kendo UI Drawer

Methods

Content(System.Action)

The HTML string representing the associated content for the Drawer widget.

Parameters

value System.Action

The value for Position

Content(System.Func<System.Object,System.Object>)

The HTML string representing the associated content for the Drawer widget.

Parameters

value System.Func<System.Object,System.Object>

The value for Position

Content(System.String)

The HTML string representing the associated content for the Drawer widget.

Parameters

value System.String

The value for Position

Position(System.String)

The position of the drawer. Can be left (default) or right.

Parameters

value System.String

The value for Position

Mode(System.String)

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.

Parameters

value System.String

The value for Mode

Template(System.String)

Specifies the drawer's content.

Parameters

value System.String

The value for Template

TemplateId(System.String)

Specifies the drawer's content.

Parameters

templateId System.String

The ID of the template element for Template

MinHeight(System.Double)

Specifies the minimum height for the drawer in push mode. The overlay mode takes 100% of the page height.

Parameters

value System.Double

The value for MinHeight

Mini(System.Action<Kendo.Mvc.UI.Fluent.DrawerMiniSettingsBuilder>)

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.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.DrawerMiniSettingsBuilder>

The configurator for the mini setting.

Mini(System.Boolean)

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.

Parameters

enabled System.Boolean

Enables or disables the mini option.

SwipeToOpen(System.Boolean)

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.

Parameters

value System.Boolean

The value for SwipeToOpen

Width(System.Double)

Defines a specific width for the Kendo UI Drawer when expanded.

Parameters

value System.Double

The value for Width

Events(System.Action<Kendo.Mvc.UI.Fluent.DrawerEventBuilder>)

Configures the client-side events.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.DrawerEventBuilder>

The client events action.

Example (ASPX)

@(Html.Kendo().Drawer()
    .Name("Drawer")
    .Events(events => events
        .Hide("onHide")
    )
)
In this article
Not finding the help you need?