DrawerTagHelper

Example

Razor
<kendo-drawer>
    <content></content>
    <items-template></items-template>
    <mini></mini>
</kendo-drawer>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
as-moduleBooleanSpecifies whether the initialization script of the component will be rendered as a JavaScript module.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
auto-collapseBooleanSpecifies if the Drawer will be automatically collapsed when an item is clicked.
expandedBooleanSpecifies if the Drawer will be expanded by default.
min-heightDoubleSpecifies the minimum height for the drawer in push mode. The overlay mode takes 100% of the page height.
modeStringDetermines 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.
navigatableBooleanIf set to true the use could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
on-hideStringThe name of the JavaScript function that will handle the hide event. Fired when the Kendo UI Drawer is about to be hidden. The event can be prevented by calling the preventDefault method of the event parameter.
on-item-clickStringThe name of the JavaScript function that will handle the itemClick event. Fires when user clicks on item from the Kendo UI Drawer.
on-showStringThe name of the JavaScript function that will handle the show event. Fires before the Kendo UI Drawer is revealed. The event can be prevented by calling the preventDefault method of the event parameter.
positionStringThe position of the drawer. Can be left (default) or right.
script-attributesIDictionary<String,Object>Sets the attributes that will be added to the script tag of the component's initialization script.
swipe-to-openBooleanIf 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.
templateStringRepresents a collection of templates defined for the component.
template-handlerStringSpecifies the drawer's content. This option expects the name of a JavaScript function that will be called to return the template.
template-idStringSpecifies the drawer's content. This option expects the ID of the script element that contains the template.
template-viewIHtmlContentSpecifies the drawer's content. This option expects the instance containing the created HTML.
widthDoubleDefines a specific width for the Kendo UI Drawer when expanded.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support