startButtonObject
(default: false)
When configured, a start button will be rendered in the left side of the header section of the ActionSheet. Typically used for navigation or back functionality. The button is only visible when title
is also specified.
Example
<div id="actionsheet"></div>
<script>
var actionsheet = $('#actionsheet').kendoActionSheet({
title: 'Select item',
startButton: {
icon: "chevron-left",
click: function(e) {
console.log("Start button clicked");
}
},
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();
}
</script>
In this article