closeOnClickBoolean
(default: true)
Determines whether the ActionSheet will close when clicking outside of it. If set to false
, the ActionSheet will remain open until explicitly closed through code or by clicking the close button (if enabled).
Example
<div id="actionsheet"></div>
<script>
var actionsheet = $('#actionsheet').kendoActionSheet({
title: 'Select item',
closeOnClick: false,
closeButton: true,
items:[
{
text: 'Edit Item',
icon: 'pencil',
click: onClick
},
{
text: 'Add to Favorites',
icon: 'heart',
click: onClick
}
]
}).data('kendoActionSheet');
actionsheet.open();
function onClick(e) {
e.preventDefault();
actionsheet.close();
}
</script>
In this article