Skip to content

Commit 5589b6d

Browse files
author
Kendo Bot
committed
Sync with Kendo UI Professional
1 parent 4b438db commit 5589b6d

File tree

4 files changed

+594
-47
lines changed

4 files changed

+594
-47
lines changed

docs/api/javascript/ui/drawer.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,26 @@ Represents the Kendo UI Drawer widget. Inherits from [Widget](/api/javascript/ui
1212

1313
## Configuration
1414

15+
### autoCollapse `Boolean` *(default: true)*
16+
17+
Specifies if the Drawer will be automatically collapsed when an item is clicked.
18+
19+
#### Specifying autoCollapse
20+
21+
<div id="drawer">
22+
<div>Content area content.</div>
23+
</div>
24+
<script>
25+
$(document).ready(function() {
26+
var drawerInstance = $("#drawer").kendoDrawer({
27+
template: `<ul><li data-role='drawer-item'><span class='k-icon k-i-star-outline'></span><span class='item-text'>item 1</span></li><li data-role='drawer-separator'></li><li data-role='drawer-item'><span class='k-icon k-i-twitter'></span><span class='item-text'>item 2</span></li></ul>`,
28+
autoCollapse: false
29+
}).data("kendoDrawer");
30+
31+
drawerInstance.show();
32+
});
33+
</script>
34+
1535
### position `String` *(default: 'left')*
1636

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

0 commit comments

Comments
 (0)